From 8055291ea099ce05039f39f7476d09e1b8662892 Mon Sep 17 00:00:00 2001 From: Feichtmeier Date: Tue, 30 Aug 2022 10:09:24 +0200 Subject: [PATCH] Update example --- example/lib/pages/tabbed_page_page.dart | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/example/lib/pages/tabbed_page_page.dart b/example/lib/pages/tabbed_page_page.dart index 85fce83ea..b5fac474a 100644 --- a/example/lib/pages/tabbed_page_page.dart +++ b/example/lib/pages/tabbed_page_page.dart @@ -22,7 +22,27 @@ class _TabbedPagePageState extends State { initialIndex: _initialIndex, views: [ YaruPage( - children: [RowList()], + children: [ + GridView( + shrinkWrap: true, + gridDelegate: SliverGridDelegateWithMaxCrossAxisExtent( + mainAxisExtent: 110, + mainAxisSpacing: 15, + crossAxisSpacing: 15, + maxCrossAxisExtent: 550, + ), + children: [ + for (int i = 0; i < 20; i++) + YaruBanner( + name: 'YaruBanner $i', + summary: 'Description', + fallbackIconData: YaruIcons.ubuntu_logo_large, + icon: Image.asset('assets/ubuntuhero.jpg'), + onTap: () => showAboutDialog(context: context), + ) + ], + ) + ], ), YaruPage(children: [ YaruSection(