butter menu buttons
This commit is contained in:
parent
ac37a352ea
commit
ee25bba5b8
1 changed files with 12 additions and 12 deletions
|
@ -107,6 +107,11 @@ 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(() {
|
||||||
|
@ -117,11 +122,6 @@ class MainPageState extends State<MainPage> {
|
||||||
Navigator.of(context).pop();
|
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?'),
|
'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(() {
|
||||||
|
@ -154,11 +159,6 @@ 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) {
|
||||||
|
|
Loading…
Reference in a new issue