feat: added input textfield

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

@ -20,11 +20,35 @@ class GameOverDialog extends StatelessWidget {
width: 200,
height: 200,
child: Center(
child: Padding(
padding: const EdgeInsets.all(10),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
const Text('Game Over'),
Text('Congratulations! your score is $score'),
Text(
'Game Over',
style: Theme.of(context).textTheme.headline4,
),
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
@ -35,6 +59,7 @@ class GameOverDialog extends StatelessWidget {
),
),
),
),
);
}
}

Loading…
Cancel
Save