Compare commits
No commits in common. "ee25bba5b8dddf9445747d26c08b31a7e0249e33" and "0c55e59bcec03eb89d4fcd654ed665fb767958b1" have entirely different histories.
ee25bba5b8
...
0c55e59bce
2 changed files with 12 additions and 18 deletions
|
@ -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,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -107,11 +107,6 @@ 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(() {
|
||||
|
@ -122,6 +117,11 @@ class MainPageState extends State<MainPage> {
|
|||
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?'),
|
||||
actions: [
|
||||
TextButton(
|
||||
onPressed: () {
|
||||
Navigator.of(context).pop();
|
||||
},
|
||||
child: const Text('Cancel')),
|
||||
FilledButton(
|
||||
child: const Text('Delete'),
|
||||
onPressed: () {
|
||||
setState(() {
|
||||
|
@ -159,6 +154,11 @@ class MainPageState extends State<MainPage> {
|
|||
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);
|
||||
}
|
||||
|
||||
String txtVals() {
|
||||
String txtVals(){
|
||||
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) {
|
||||
|
|
Loading…
Reference in a new issue