Compare commits

..

No commits in common. "ee25bba5b8dddf9445747d26c08b31a7e0249e33" and "0c55e59bcec03eb89d4fcd654ed665fb767958b1" have entirely different histories.

2 changed files with 12 additions and 18 deletions

View file

@ -148,12 +148,6 @@ class _QuizPageState extends State<QuizPage> {
], ],
), ),
), ),
floatingActionButton: askState != -1
? FloatingActionButton.extended(
onPressed: _nextQuestion,
icon: const Icon(Icons.chevron_right),
label: const Text("Next"))
: null,
); );
} }
} }

View file

@ -107,11 +107,6 @@ class MainPageState extends State<MainPage> {
Text('Do you want to reset „${v.name}“ Vault?'), Text('Do you want to reset „${v.name}“ Vault?'),
actions: [ actions: [
TextButton( TextButton(
onPressed: () {
Navigator.of(context).pop();
},
child: const Text('Cancel')),
FilledButton(
child: const Text('Reset'), child: const Text('Reset'),
onPressed: () { onPressed: () {
setState(() { setState(() {
@ -122,6 +117,11 @@ class MainPageState extends State<MainPage> {
Navigator.of(context).pop(); Navigator.of(context).pop();
}, },
), ),
TextButton(
onPressed: () {
Navigator.of(context).pop();
},
child: const Text('Cancle'))
], ],
); );
}, },
@ -143,11 +143,6 @@ class MainPageState extends State<MainPage> {
'Do you want to delete „${v.name}“ Vault?'), 'Do you want to delete „${v.name}“ Vault?'),
actions: [ actions: [
TextButton( TextButton(
onPressed: () {
Navigator.of(context).pop();
},
child: const Text('Cancel')),
FilledButton(
child: const Text('Delete'), child: const Text('Delete'),
onPressed: () { onPressed: () {
setState(() { setState(() {
@ -159,6 +154,11 @@ class MainPageState extends State<MainPage> {
Navigator.of(context).pop(); Navigator.of(context).pop();
}, },
), ),
TextButton(
onPressed: () {
Navigator.of(context).pop();
},
child: const Text('Cancle'))
], ],
); );
}, },
@ -321,9 +321,9 @@ class Vault {
return (min, total.toDouble() / questions.length, max); return (min, total.toDouble() / questions.length, max);
} }
String txtVals() { String txtVals(){
var (min, avg, max) = vals(); var (min, avg, max) = vals();
return '($min, ${(avg * 100).round() / 100.0}, $max)'; return '($min, ${(avg*100).round()/100.0}, $max)';
} }
factory Vault.fromJson(Map<String, dynamic> json) { factory Vault.fromJson(Map<String, dynamic> json) {