From 581baa23cbbf8b13223a28491775746f2b3992ad Mon Sep 17 00:00:00 2001 From: Kevin Worth Date: Sun, 10 May 2020 16:34:41 -0400 Subject: [PATCH] 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. --- flutterempires/lib/main.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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(); }), + ), ], ), ), -- 2.43.0