From 452eb73773379c68b2b33f1eb96b2708ed324d71 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Fri, 7 Feb 2025 05:00:57 -0700 Subject: [PATCH] Code formatting and dialog text enhancements. --- lib/pages/expense.dart | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/lib/pages/expense.dart b/lib/pages/expense.dart index 397ce8a..4993814 100644 --- a/lib/pages/expense.dart +++ b/lib/pages/expense.dart @@ -87,7 +87,8 @@ class _ExpensePageState extends State { break; default: UnimplementedError( - "Direction ${direction.toString()} not recognized."); + "Direction ${direction.toString()} not recognized.", + ); } }, child: Container( @@ -188,9 +189,10 @@ class _ExpenseInputDialogState extends State { AlertDialog( insetPadding: EdgeInsets.all(0), title: Center( - child: widget.expense == null - ? Text("New Expense") - : Text("Edit Expense")), + child: widget.expense == null + ? Text("New Expense") + : Text("Edit Expense"), + ), content: Form( key: _expenseFormKey, child: Column( @@ -201,7 +203,7 @@ class _ExpenseInputDialogState extends State { 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 { 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 { 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: