Code formatting and dialog text enhancements.
This commit is contained in:
parent
631555af59
commit
452eb73773
@ -87,7 +87,8 @@ class _ExpensePageState extends State<ExpensePage> {
|
|||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
UnimplementedError(
|
UnimplementedError(
|
||||||
"Direction ${direction.toString()} not recognized.");
|
"Direction ${direction.toString()} not recognized.",
|
||||||
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
child: Container(
|
child: Container(
|
||||||
@ -188,9 +189,10 @@ class _ExpenseInputDialogState extends State<ExpenseInputDialog> {
|
|||||||
AlertDialog(
|
AlertDialog(
|
||||||
insetPadding: EdgeInsets.all(0),
|
insetPadding: EdgeInsets.all(0),
|
||||||
title: Center(
|
title: Center(
|
||||||
child: widget.expense == null
|
child: widget.expense == null
|
||||||
? Text("New Expense")
|
? Text("New Expense")
|
||||||
: Text("Edit Expense")),
|
: Text("Edit Expense"),
|
||||||
|
),
|
||||||
content: Form(
|
content: Form(
|
||||||
key: _expenseFormKey,
|
key: _expenseFormKey,
|
||||||
child: Column(
|
child: Column(
|
||||||
@ -201,7 +203,7 @@ class _ExpenseInputDialogState extends State<ExpenseInputDialog> {
|
|||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
labelText: "Name",
|
labelText: "Name",
|
||||||
hintText: "Example: Red Pocket",
|
hintText: "Example: Red Pocket",
|
||||||
hintStyle: TextStyle(fontSize: 12.0),
|
hintStyle: TextStyle(fontSize: 10.0),
|
||||||
errorStyle: TextStyle(fontSize: 10.0),
|
errorStyle: TextStyle(fontSize: 10.0),
|
||||||
),
|
),
|
||||||
initialValue:
|
initialValue:
|
||||||
@ -224,7 +226,7 @@ class _ExpenseInputDialogState extends State<ExpenseInputDialog> {
|
|||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
labelText: "Cost",
|
labelText: "Cost",
|
||||||
hintText: "Example: 10.00",
|
hintText: "Example: 10.00",
|
||||||
hintStyle: TextStyle(fontSize: 12.0),
|
hintStyle: TextStyle(fontSize: 10.0),
|
||||||
errorStyle: TextStyle(fontSize: 10.0),
|
errorStyle: TextStyle(fontSize: 10.0),
|
||||||
),
|
),
|
||||||
initialValue: widget.expense == null
|
initialValue: widget.expense == null
|
||||||
@ -295,8 +297,8 @@ class _ExpenseInputDialogState extends State<ExpenseInputDialog> {
|
|||||||
keyboardType: TextInputType.text,
|
keyboardType: TextInputType.text,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
labelText: "Description",
|
labelText: "Description",
|
||||||
hintText: "Example: 1GB data with unlimited talk & text.",
|
hintText: "Example: 1GB data, unlimited talk & text.",
|
||||||
hintStyle: TextStyle(fontSize: 12.0),
|
hintStyle: TextStyle(fontSize: 10.0),
|
||||||
errorStyle: TextStyle(fontSize: 10.0),
|
errorStyle: TextStyle(fontSize: 10.0),
|
||||||
),
|
),
|
||||||
initialValue:
|
initialValue:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user