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;
|
||||
default:
|
||||
UnimplementedError(
|
||||
"Direction ${direction.toString()} not recognized.");
|
||||
"Direction ${direction.toString()} not recognized.",
|
||||
);
|
||||
}
|
||||
},
|
||||
child: Container(
|
||||
@ -190,7 +191,8 @@ class _ExpenseInputDialogState extends State<ExpenseInputDialog> {
|
||||
title: Center(
|
||||
child: widget.expense == null
|
||||
? Text("New Expense")
|
||||
: Text("Edit Expense")),
|
||||
: Text("Edit Expense"),
|
||||
),
|
||||
content: Form(
|
||||
key: _expenseFormKey,
|
||||
child: Column(
|
||||
@ -201,7 +203,7 @@ class _ExpenseInputDialogState extends State<ExpenseInputDialog> {
|
||||
decoration: InputDecoration(
|
||||
labelText: "Name",
|
||||
hintText: "Example: Red Pocket",
|
||||
hintStyle: TextStyle(fontSize: 12.0),
|
||||
hintStyle: TextStyle(fontSize: 10.0),
|
||||
errorStyle: TextStyle(fontSize: 10.0),
|
||||
),
|
||||
initialValue:
|
||||
@ -224,7 +226,7 @@ class _ExpenseInputDialogState extends State<ExpenseInputDialog> {
|
||||
decoration: InputDecoration(
|
||||
labelText: "Cost",
|
||||
hintText: "Example: 10.00",
|
||||
hintStyle: TextStyle(fontSize: 12.0),
|
||||
hintStyle: TextStyle(fontSize: 10.0),
|
||||
errorStyle: TextStyle(fontSize: 10.0),
|
||||
),
|
||||
initialValue: widget.expense == null
|
||||
@ -295,8 +297,8 @@ class _ExpenseInputDialogState extends State<ExpenseInputDialog> {
|
||||
keyboardType: TextInputType.text,
|
||||
decoration: InputDecoration(
|
||||
labelText: "Description",
|
||||
hintText: "Example: 1GB data with unlimited talk & text.",
|
||||
hintStyle: TextStyle(fontSize: 12.0),
|
||||
hintText: "Example: 1GB data, unlimited talk & text.",
|
||||
hintStyle: TextStyle(fontSize: 10.0),
|
||||
errorStyle: TextStyle(fontSize: 10.0),
|
||||
),
|
||||
initialValue:
|
||||
|
Loading…
x
Reference in New Issue
Block a user