Skip to content

Commit

Permalink
fix: update regex of amount input for multiple currency
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvanbhalara committed Mar 12, 2024
1 parent 7b355d0 commit 9519258
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 9519258

Please sign in to comment.