fix 'incorrect use of expanded' error

This commit is contained in:
Mikkel Troels Kongsted 2025-02-10 11:43:27 +01:00
parent b18e0455e7
commit 7542fb7c44

View File

@ -25,8 +25,7 @@ class ProductListItem extends StatelessWidget {
Navigator.of(context) Navigator.of(context)
.push(MaterialPageRoute(builder: (context) => productPage)); .push(MaterialPageRoute(builder: (context) => productPage));
}, },
child: Expanded( child: Row(
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [ children: [
Container( Container(
@ -50,7 +49,7 @@ class ProductListItem extends StatelessWidget {
width: 100, width: 100,
)) ))
], ],
))), )),
); );
} }
} }