// closer together (more dense) than on mobile platforms.
visualDensity: VisualDensity.adaptivePlatformDensity,
),
- home: MyHomePage(title: 'Families (Name Game)'),
+ home: MyHomePage(title: 'Families / Empires'),
);
}
}
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
+ Spacer(flex: 10),
Text(
- 'You have pushed the button this many times:',
+ 'Name:',
+ style: Theme.of(context).textTheme.headline4,
+ ),
+ TextField(
+ decoration: InputDecoration(
+ hintText: 'Enter your (real) name',
+ ),
),
+ Spacer(),
Text(
- '$_counter',
+ 'Character:',
style: Theme.of(context).textTheme.headline4,
),
+ TextField(
+ decoration: InputDecoration(
+ hintText: 'Enter your family/empire name',
+ ),
+ ),
+ Spacer(flex: 10),
],
),
),