fix(ui_kit): add cacheExtend as a trade-off in listview example

This commit is contained in:
Hugo Pointcheval 2023-02-14 14:49:39 +01:00
parent 198d83b663
commit 5c34528b3d
Signed by: hugo
GPG Key ID: 3AAC487E131E00BC
2 changed files with 2 additions and 0 deletions

View File

@ -37,6 +37,7 @@ class Buttons extends StatelessWidget {
@override
Widget build(BuildContext context) => ListView(
cacheExtent: 2000,
children: [
const Gap(20),
Align(

View File

@ -10,6 +10,7 @@ class Cards extends StatelessWidget {
@override
Widget build(BuildContext context) => ListView(
cacheExtent: 1000,
children: [
const Gap(20),
Align(