From 876d6581efa480cb9620547862b4128bd6a5ba4f Mon Sep 17 00:00:00 2001 From: Eric Nguyen Date: Mon, 13 Jul 2020 12:35:29 -0400 Subject: [PATCH] Make MemberList grid adapt better to screen size --- lib/MemberList.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/MemberList.dart b/lib/MemberList.dart index 02c2c68..fc9c009 100644 --- a/lib/MemberList.dart +++ b/lib/MemberList.dart @@ -31,9 +31,9 @@ class MemberList extends StatelessWidget { builder: (context, snapshot) { var members = json.decode(snapshot.data.toString()); return GridView.builder( - gridDelegate: SliverGridDelegateWithFixedCrossAxisCount( - crossAxisCount: 2, + gridDelegate: SliverGridDelegateWithMaxCrossAxisExtent( childAspectRatio: 1.15, + maxCrossAxisExtent: 256, ), itemCount: members == null ? 0 : members.length, itemBuilder: (context, index) {