From 7542fb7c44ec0a51940ec9a9d20c4179b0168acb Mon Sep 17 00:00:00 2001 From: Mikkel Troels Kongsted Date: Mon, 10 Feb 2025 11:43:27 +0100 Subject: [PATCH] fix 'incorrect use of expanded' error --- mobile/lib/pages/all_products_page.dart | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mobile/lib/pages/all_products_page.dart b/mobile/lib/pages/all_products_page.dart index ab512ed..c14e969 100644 --- a/mobile/lib/pages/all_products_page.dart +++ b/mobile/lib/pages/all_products_page.dart @@ -25,8 +25,7 @@ class ProductListItem extends StatelessWidget { Navigator.of(context) .push(MaterialPageRoute(builder: (context) => productPage)); }, - child: Expanded( - child: Row( + child: Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ Container( @@ -50,7 +49,7 @@ class ProductListItem extends StatelessWidget { width: 100, )) ], - ))), + )), ); } }