Fix app grid scrolling 99/30599/2
authorTomi Leppänen <tomi.leppanen@seafarix.com>
Mon, 18 Nov 2024 12:48:49 +0000 (14:48 +0200)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Mon, 2 Dec 2024 11:35:56 +0000 (11:35 +0000)
Change Padding to Extended to size app grid's GridView correctly and
move padding defintion inside GridView. GridView should look still the
same but now scrolling works properly.

Previously app grid could not be scrolled at all. After this it should
scroll just fine.

Bug-AGL: SPEC-5297
Change-Id: I3f7e24226db087a9c7a20092f2d24cc65ecd8df9
Signed-off-by: Tomi Leppänen <tomi.leppanen@seafarix.com>
lib/presentation/screens/apps/apps_content.dart

index b0afda1..eb7beb9 100644 (file)
@@ -29,9 +29,9 @@ class _AppsState extends ConsumerState<Apps> {
       crossAxisAlignment: CrossAxisAlignment.stretch,
       children: [
         const CommonTitle(title: "Applications"),
-        Padding(
-          padding: const EdgeInsets.symmetric(vertical: 50, horizontal: 148),
+        Expanded(
           child: GridView.builder(
+            padding: const EdgeInsets.symmetric(vertical: 50, horizontal: 148),
             scrollDirection: Axis.vertical,
             shrinkWrap: true,
             itemCount: apps.length,