]> git.cworth.org Git - lmno.games/commitdiff
Clean up indentation
authorKevin Worth <kworth082@gmail.com>
Mon, 11 May 2020 12:30:01 +0000 (08:30 -0400)
committerCarl Worth <cworth@cworth.org>
Sat, 23 May 2020 13:49:00 +0000 (06:49 -0700)
This commit changes whitespace only, now that the FutureBuilder is
inside the Expanded widget.

flutterempires/lib/main.dart

index 7bb337c1b7b2b35cf158e276443e3d73a07c670f..3cb887278f5c497a3ebd9fd939baa7a7475983f8 100644 (file)
@@ -136,23 +136,23 @@ class _MyHomePageState extends State<MyHomePage> {
               ),
               Expanded(
                 flex: 10,
-              child: FutureBuilder<List<Player>>(
-                  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<List<Player>>(
+                    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();
+                    }),
+              )
             ],
           ),
         ),