Skip to content

Commit

Permalink
Merge pull request #411 from dhruvanbhalara/allow_numeric_value_for_a…
Browse files Browse the repository at this point in the history
…mount

fix: allow numeric value input for amount
  • Loading branch information
h4h13 committed Jun 10, 2024
2 parents 7170c5b + 6cf299f commit f4f7415
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class TransactionAmountWidget extends StatelessWidget {
keyboardType:
const TextInputType.numberWithOptions(decimal: true, signed: true),
inputFormatters: <TextInputFormatter>[
FilteringTextInputFormatter.allow(RegExp(r'[0-9.]')),
FilteringTextInputFormatter.allow(RegExp(r"[0-9 '.,-]")),
TextInputFormatter.withFunction((oldValue, newValue) {
try {
final text = newValue.text;
Expand Down

0 comments on commit f4f7415

Please sign in to comment.