Apply automatic dart fixes

This commit is contained in:
zontreck 2023-11-04 01:38:04 -07:00
parent fc9dc6f4d3
commit e0561ea13f
6 changed files with 41 additions and 49 deletions

View file

@ -28,8 +28,9 @@ class InputBox extends StatelessWidget {
this.hasInputField = true}) {
if (isDefault) {
value.text = "";
} else
} else {
value.text = defaultText;
}
}
@override
@ -44,22 +45,22 @@ class InputBox extends StatelessWidget {
onSubmit();
Navigator.of(context).pop();
},
child: hasInputField ? Text("Submit") : Text("OK"),
style: ButtonStyle(
backgroundColor: MaterialStateColor.resolveWith(
(states) => const Color.fromARGB(255, 0, 83, 3))),
child: hasInputField ? Text("Submit") : Text("OK"),
),
ElevatedButton(
onPressed: () {
onCancel();
Navigator.of(context).pop();
},
child: Text("Cancel"),
style: ButtonStyle(
backgroundColor: MaterialStateColor.resolveWith(
(states) => const Color.fromARGB(255, 109, 7, 0))))
(states) => const Color.fromARGB(255, 109, 7, 0))),
child: Text("Cancel"))
],
content: Container(
content: SizedBox(
height: 128,
//decoration: BoxDecoration(
//border: Border.all(style: BorderStyle.solid),