Skip to content

Commit

Permalink
Make MemberList grid adapt better to screen size
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Nguyen committed Jul 13, 2020
1 parent 2995759 commit 876d658
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/MemberList.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 876d658

Please sign in to comment.