]> git.cworth.org Git - lmno.games/commitdiff
Fix indentation after adding Container
authorKevin Worth <kworth082@gmail.com>
Sat, 2 May 2020 11:20:42 +0000 (07:20 -0400)
committerCarl Worth <cworth@cworth.org>
Sat, 23 May 2020 13:49:00 +0000 (06:49 -0700)
Changes whitespace only

flutterfamilies/lib/main.dart

index 1f2d410b324a51215aed2de879314c08815f2a3b..95bd114177ed682ea250b164ec90e76a54683557 100644 (file)
@@ -80,51 +80,51 @@ class _MyHomePageState extends State<MyHomePage> {
       body: new Container(
         margin: const EdgeInsets.only(left: 20.0, right: 20.0),
         child : Center(
-        // Center is a layout widget. It takes a single child and positions it
-        // in the middle of the parent.
-        child: Column(
-          // Column is also a layout widget. It takes a list of children and
-          // arranges them vertically. By default, it sizes itself to fit its
-          // children horizontally, and tries to be as tall as its parent.
-          //
-          // Invoke "debug painting" (press "p" in the console, choose the
-          // "Toggle Debug Paint" action from the Flutter Inspector in Android
-          // Studio, or the "Toggle Debug Paint" command in Visual Studio Code)
-          // to see the wireframe for each widget.
-          //
-          // Column has various properties to control how it sizes itself and
-          // how it positions its children. Here we use mainAxisAlignment to
-          // center the children vertically; the main axis here is the vertical
-          // axis because Columns are vertical (the cross axis would be
-          // horizontal).
-          mainAxisAlignment: MainAxisAlignment.center,
-          crossAxisAlignment: CrossAxisAlignment.start,
-          children: <Widget>[
-            Spacer(flex: 10),
-            Text(
-              'Name:',
-              style: Theme.of(context).textTheme.headline4,
-            ),
-            TextField(
-              decoration: InputDecoration(
-                hintText: 'Enter your (real) name',
+          // Center is a layout widget. It takes a single child and positions it
+          // in the middle of the parent.
+          child: Column(
+            // Column is also a layout widget. It takes a list of children and
+            // arranges them vertically. By default, it sizes itself to fit its
+            // children horizontally, and tries to be as tall as its parent.
+            //
+            // Invoke "debug painting" (press "p" in the console, choose the
+            // "Toggle Debug Paint" action from the Flutter Inspector in Android
+            // Studio, or the "Toggle Debug Paint" command in Visual Studio Code)
+            // to see the wireframe for each widget.
+            //
+            // Column has various properties to control how it sizes itself and
+            // how it positions its children. Here we use mainAxisAlignment to
+            // center the children vertically; the main axis here is the vertical
+            // axis because Columns are vertical (the cross axis would be
+            // horizontal).
+            mainAxisAlignment: MainAxisAlignment.center,
+            crossAxisAlignment: CrossAxisAlignment.start,
+            children: <Widget>[
+              Spacer(flex: 10),
+              Text(
+                'Name:',
+                style: Theme.of(context).textTheme.headline4,
               ),
-            ),
-            Spacer(),
-            Text(
-              'Character:',
-              style: Theme.of(context).textTheme.headline4,
-            ),
-            TextField(
-              decoration: InputDecoration(
-                hintText: 'Enter your family/empire name',
+              TextField(
+                decoration: InputDecoration(
+                  hintText: 'Enter your (real) name',
+                ),
               ),
-            ),
-            Spacer(flex: 10),
-          ],
+              Spacer(),
+              Text(
+                'Character:',
+                style: Theme.of(context).textTheme.headline4,
+              ),
+              TextField(
+                decoration: InputDecoration(
+                  hintText: 'Enter your family/empire name',
+                ),
+              ),
+              Spacer(flex: 10),
+            ],
+          ),
         ),
       ),
-    ),
       floatingActionButton: FloatingActionButton(
         onPressed: _incrementCounter,
         tooltip: 'Increment',