Compare commits
2 commits
0c55e59bce
...
ee25bba5b8
Author | SHA1 | Date | |
---|---|---|---|
ee25bba5b8 | |||
ac37a352ea |
2 changed files with 18 additions and 12 deletions
|
@ -148,6 +148,12 @@ class _QuizPageState extends State<QuizPage> {
|
|||
],
|
||||
),
|
||||
),
|
||||
floatingActionButton: askState != -1
|
||||
? FloatingActionButton.extended(
|
||||
onPressed: _nextQuestion,
|
||||
icon: const Icon(Icons.chevron_right),
|
||||
label: const Text("Next"))
|
||||
: null,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -107,6 +107,11 @@ class MainPageState extends State<MainPage> {
|
|||
Text('Do you want to reset „${v.name}“ Vault?'),
|
||||
actions: [
|
||||
TextButton(
|
||||
onPressed: () {
|
||||
Navigator.of(context).pop();
|
||||
},
|
||||
child: const Text('Cancel')),
|
||||
FilledButton(
|
||||
child: const Text('Reset'),
|
||||
onPressed: () {
|
||||
setState(() {
|
||||
|
@ -117,11 +122,6 @@ class MainPageState extends State<MainPage> {
|
|||
Navigator.of(context).pop();
|
||||
},
|
||||
),
|
||||
TextButton(
|
||||
onPressed: () {
|
||||
Navigator.of(context).pop();
|
||||
},
|
||||
child: const Text('Cancle'))
|
||||
],
|
||||
);
|
||||
},
|
||||
|
@ -143,6 +143,11 @@ class MainPageState extends State<MainPage> {
|
|||
'Do you want to delete „${v.name}“ Vault?'),
|
||||
actions: [
|
||||
TextButton(
|
||||
onPressed: () {
|
||||
Navigator.of(context).pop();
|
||||
},
|
||||
child: const Text('Cancel')),
|
||||
FilledButton(
|
||||
child: const Text('Delete'),
|
||||
onPressed: () {
|
||||
setState(() {
|
||||
|
@ -154,11 +159,6 @@ class MainPageState extends State<MainPage> {
|
|||
Navigator.of(context).pop();
|
||||
},
|
||||
),
|
||||
TextButton(
|
||||
onPressed: () {
|
||||
Navigator.of(context).pop();
|
||||
},
|
||||
child: const Text('Cancle'))
|
||||
],
|
||||
);
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue