From 5c34528b3d778ce0ed49eab6e688986a1d53f436 Mon Sep 17 00:00:00 2001 From: Hugo Pointcheval Date: Tue, 14 Feb 2023 14:49:39 +0100 Subject: [PATCH] fix(ui_kit): add cacheExtend as a trade-off in listview example --- packages/wyatt_ui_kit/example/lib/buttons/buttons.dart | 1 + packages/wyatt_ui_kit/example/lib/cards/cards.dart | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/wyatt_ui_kit/example/lib/buttons/buttons.dart b/packages/wyatt_ui_kit/example/lib/buttons/buttons.dart index 010d26f3..6b224ded 100644 --- a/packages/wyatt_ui_kit/example/lib/buttons/buttons.dart +++ b/packages/wyatt_ui_kit/example/lib/buttons/buttons.dart @@ -37,6 +37,7 @@ class Buttons extends StatelessWidget { @override Widget build(BuildContext context) => ListView( + cacheExtent: 2000, children: [ const Gap(20), Align( diff --git a/packages/wyatt_ui_kit/example/lib/cards/cards.dart b/packages/wyatt_ui_kit/example/lib/cards/cards.dart index 4c99cdea..fbbf058b 100644 --- a/packages/wyatt_ui_kit/example/lib/cards/cards.dart +++ b/packages/wyatt_ui_kit/example/lib/cards/cards.dart @@ -10,6 +10,7 @@ class Cards extends StatelessWidget { @override Widget build(BuildContext context) => ListView( + cacheExtent: 1000, children: [ const Gap(20), Align(