feat: added input textfield

pull/98/head
RuiAlonso 4 years ago
parent 3d48564e8c
commit 7ca6a5caa8

@ -20,18 +20,43 @@ class GameOverDialog extends StatelessWidget {
width: 200, width: 200,
height: 200, height: 200,
child: Center( child: Center(
child: Column( child: Padding(
mainAxisAlignment: MainAxisAlignment.center, padding: const EdgeInsets.all(10),
children: [ child: Column(
const Text('Game Over'), mainAxisAlignment: MainAxisAlignment.center,
Text('Congratulations! your score is $score'), children: [
TextButton( Text(
onPressed: () { 'Game Over',
//TODO: navigate to LeadersboardPage style: Theme.of(context).textTheme.headline4,
}, ),
child: const Text('Add User'), const SizedBox(
), height: 10,
], ),
Text(
'Your score is $score',
style: Theme.of(context).textTheme.headline6,
),
const SizedBox(
height: 10,
),
const TextField(
decoration: InputDecoration(
border: OutlineInputBorder(),
hintText: 'Enter your initials',
),
maxLength: 3,
),
const SizedBox(
height: 10,
),
TextButton(
onPressed: () {
//TODO: navigate to LeadersboardPage
},
child: const Text('Add User'),
),
],
),
), ),
), ),
), ),

Loading…
Cancel
Save