Format dialog a little better.
This commit is contained in:
parent
bcae40e0e2
commit
7ead0e5ebb
@ -180,48 +180,45 @@ class _ExpenseInputDialogState extends State<ExpenseInputDialog> {
|
|||||||
];
|
];
|
||||||
|
|
||||||
return AlertDialog(
|
return AlertDialog(
|
||||||
title: Text("Add New Expense"),
|
title: Center(child: Text("Add New Expense")),
|
||||||
content: Center(
|
content: Column(mainAxisSize: MainAxisSize.min, spacing: 10, children: [
|
||||||
child: Column(mainAxisSize: MainAxisSize.min, spacing: 10, children: [
|
SizedBox(
|
||||||
Text('New Expense'),
|
|
||||||
SizedBox(
|
|
||||||
width: inputWidth,
|
|
||||||
height: inputHeight,
|
|
||||||
child: TextField(
|
|
||||||
keyboardType: TextInputType.text,
|
|
||||||
decoration: InputDecoration(
|
|
||||||
labelText: "Name",
|
|
||||||
hintText: "Example: Red Pocket Phone Bill",
|
|
||||||
),
|
|
||||||
// https://docs.flutter.dev/cookbook/forms/retrieve-input
|
|
||||||
//controller: nameFieldController,
|
|
||||||
)),
|
|
||||||
SizedBox(
|
|
||||||
width: inputWidth,
|
width: inputWidth,
|
||||||
height: inputHeight,
|
height: inputHeight,
|
||||||
child: TextField(
|
child: TextField(
|
||||||
keyboardType: TextInputType.numberWithOptions(decimal: true),
|
keyboardType: TextInputType.text,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
labelText: "Cost", hintText: "Example: 10.00"),
|
labelText: "Name",
|
||||||
),
|
hintText: "Example: Red Pocket Phone Bill",
|
||||||
|
),
|
||||||
|
// https://docs.flutter.dev/cookbook/forms/retrieve-input
|
||||||
|
//controller: nameFieldController,
|
||||||
|
)),
|
||||||
|
SizedBox(
|
||||||
|
width: inputWidth,
|
||||||
|
height: inputHeight,
|
||||||
|
child: TextField(
|
||||||
|
keyboardType: TextInputType.numberWithOptions(decimal: true),
|
||||||
|
decoration:
|
||||||
|
InputDecoration(labelText: "Cost", hintText: "Example: 10.00"),
|
||||||
),
|
),
|
||||||
DropdownMenu(
|
),
|
||||||
dropdownMenuEntries: recurrenceValues,
|
DropdownMenu(
|
||||||
|
dropdownMenuEntries: recurrenceValues,
|
||||||
|
width: inputWidth,
|
||||||
|
label: Text("Recurrence"),
|
||||||
|
hintText: "Example: Monthly",
|
||||||
|
),
|
||||||
|
SizedBox(
|
||||||
width: inputWidth,
|
width: inputWidth,
|
||||||
label: Text("Recurrence"),
|
height: inputHeight,
|
||||||
hintText: "Example: Monthly",
|
child: TextField(
|
||||||
),
|
keyboardType: TextInputType.text,
|
||||||
SizedBox(
|
decoration: InputDecoration(
|
||||||
width: inputWidth,
|
labelText: "Description",
|
||||||
height: inputHeight,
|
hintText: "Example: 1GB data with unlimited talk & text."),
|
||||||
child: TextField(
|
)),
|
||||||
keyboardType: TextInputType.text,
|
]),
|
||||||
decoration: InputDecoration(
|
|
||||||
labelText: "Description",
|
|
||||||
hintText: "Example: 1GB data with unlimited talk & text."),
|
|
||||||
)),
|
|
||||||
]),
|
|
||||||
),
|
|
||||||
actions: [
|
actions: [
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: inputWidth,
|
width: inputWidth,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user