From: Kevin Worth Date: Sun, 10 May 2020 20:34:41 +0000 (-0400) Subject: Add Expanded to fix the scrollable in a scrollable problem X-Git-Url: https://git.cworth.org/git?p=lmno.games;a=commitdiff_plain;h=581baa23cbbf8b13223a28491775746f2b3992ad Add Expanded to fix the scrollable in a scrollable problem Since the ListView can't be put into the Column widget, we instead add an Expanded widget and put the ListView in there. --- diff --git a/flutterempires/lib/main.dart b/flutterempires/lib/main.dart index 0685857..7bb337c 100644 --- a/flutterempires/lib/main.dart +++ b/flutterempires/lib/main.dart @@ -134,8 +134,9 @@ class _MyHomePageState extends State { return CircularProgressIndicator(); }, ), - Spacer(flex: 10), - FutureBuilder>( + Expanded( + flex: 10, + child: FutureBuilder>( future: allPlayers, builder: (context, snapshot) { if (snapshot.hasData) { @@ -151,6 +152,7 @@ class _MyHomePageState extends State { } return CircularProgressIndicator(); }), + ), ], ), ),