2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-14 03:05:32 +00:00

Use GridView.extent instead

This commit is contained in:
Oliver
2021-09-27 22:43:18 +10:00
parent 11c8a55677
commit 7d80b4f151
2 changed files with 3 additions and 3 deletions

View File

@ -228,8 +228,8 @@ class _InvenTreeHomePageState extends State<InvenTreeHomePage> {
], ],
), ),
drawer: new InvenTreeDrawer(context), drawer: new InvenTreeDrawer(context),
body: GridView.count( body: GridView.extent(
crossAxisCount: MediaQuery.of(context).orientation == Orientation.portrait ? 3 : 5, maxCrossAxisExtent: 150,
shrinkWrap: true, shrinkWrap: true,
physics: ClampingScrollPhysics(), physics: ClampingScrollPhysics(),
children: [ children: [