diff options
author | Tomi Leppänen <tomi.leppanen@seafarix.com> | 2024-11-18 14:43:19 +0200 |
---|---|---|
committer | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2024-12-02 11:35:56 +0000 |
commit | b3a67fde51e2e9f1554e8a0e13a872d9092c0b92 (patch) | |
tree | b6ee50850eb0b50359079511bb97fb5acea650d8 /lib/presentation | |
parent | dcb37db76c4764643d0c1e975802f64c78df0f7a (diff) |
Make app grid element padding dynamic
Instead of defining three elements of varying size, vary the number of
elements. This makes much more sense in general.
The grid looks the same as before for 1080x1920 resolution but
anything else will look better with this change.
Bug-AGL: SPEC-5297
Change-Id: I606d39168fc4a6a6c93c7b710849d50b9757a2fb
Signed-off-by: Tomi Leppänen <tomi.leppanen@seafarix.com>
Diffstat (limited to 'lib/presentation')
-rw-r--r-- | lib/presentation/screens/apps/apps_content.dart | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/presentation/screens/apps/apps_content.dart b/lib/presentation/screens/apps/apps_content.dart index 18f91b6..3d3505a 100644 --- a/lib/presentation/screens/apps/apps_content.dart +++ b/lib/presentation/screens/apps/apps_content.dart @@ -35,8 +35,7 @@ class _AppsState extends ConsumerState<Apps> { scrollDirection: Axis.vertical, shrinkWrap: true, itemCount: apps.length, - gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount( - crossAxisCount: 3), + gridDelegate: const SliverGridDelegateWithMaxCrossAxisExtent(maxCrossAxisExtent: 300), itemBuilder: (context, index) { return GridTile( child: Container( |