From: Kevin Worth Date: Mon, 11 May 2020 12:30:01 +0000 (-0400) Subject: Clean up indentation X-Git-Url: https://git.cworth.org/git?p=lmno.games;a=commitdiff_plain;h=9a13f68392ffed74158dc493a2d8751062310562 Clean up indentation This commit changes whitespace only, now that the FutureBuilder is inside the Expanded widget. --- diff --git a/flutterempires/lib/main.dart b/flutterempires/lib/main.dart index 7bb337c..3cb8872 100644 --- a/flutterempires/lib/main.dart +++ b/flutterempires/lib/main.dart @@ -136,23 +136,23 @@ class _MyHomePageState extends State { ), Expanded( flex: 10, - child: FutureBuilder>( - future: allPlayers, - builder: (context, snapshot) { - if (snapshot.hasData) { - return ListView.builder( - itemCount: snapshot.data.length, - itemBuilder: (context, index) { - return ListTile( - title: Text( - snapshot.data[index].name.toString())); - }); - } else if (snapshot.hasError) { - return Text("${snapshot.error}"); - } - return CircularProgressIndicator(); - }), - ), + child: FutureBuilder>( + future: allPlayers, + builder: (context, snapshot) { + if (snapshot.hasData) { + return ListView.builder( + itemCount: snapshot.data.length, + itemBuilder: (context, index) { + return ListTile( + title: Text( + snapshot.data[index].name.toString())); + }); + } else if (snapshot.hasError) { + return Text("${snapshot.error}"); + } + return CircularProgressIndicator(); + }), + ) ], ), ),