fix: restrict Add/Edit expense "Amount" input to numeric values only #41
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bug
In the Add Expense and Edit Expense screens, the "Amount" field accepts any character because it uses a plain
OutlinedTextFieldwithout keyboard type restrictions. Users can type letters and symbols, which the parser then has to reject (or silently store) and the on-screen keyboard shows the QWERTY layout instead of the numeric keypad.Repro
Expected
KeyboardType.DecimalorNumber).Implementation hint
Use
OutlinedTextField(or the project's wrapper) with:Apply the same fix to the Add/Edit Recurring expense screen for consistency.
Scope
Two screens:
AddEditExpenseScreenandAddEditRecurringScreen.