X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=flutterfamilies%2Flib%2Fmain.dart;h=1f2d410b324a51215aed2de879314c08815f2a3b;hb=0551423accbc0c9fb91ec3ca42cc7c87081f7eff;hp=44855ed0da655716f201f0c0844daa9743ee6f71;hpb=25179ab93a5c4e7ff8a1f7a37b5ab109ff5f8450;p=lmno.games diff --git a/flutterfamilies/lib/main.dart b/flutterfamilies/lib/main.dart index 44855ed..1f2d410 100644 --- a/flutterfamilies/lib/main.dart +++ b/flutterfamilies/lib/main.dart @@ -77,7 +77,9 @@ class _MyHomePageState extends State { // the App.build method, and use it to set our appbar title. title: Text(widget.title), ), - body: Center( + 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( @@ -98,6 +100,7 @@ class _MyHomePageState extends State { mainAxisAlignment: MainAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.start, children: [ + Spacer(flex: 10), Text( 'Name:', style: Theme.of(context).textTheme.headline4, @@ -107,6 +110,7 @@ class _MyHomePageState extends State { hintText: 'Enter your (real) name', ), ), + Spacer(), Text( 'Character:', style: Theme.of(context).textTheme.headline4, @@ -116,9 +120,11 @@ class _MyHomePageState extends State { hintText: 'Enter your family/empire name', ), ), + Spacer(flex: 10), ], ), ), + ), floatingActionButton: FloatingActionButton( onPressed: _incrementCounter, tooltip: 'Increment',