fix: allow comma in payment pop, replaced by point

This commit is contained in:
poka 2022-06-10 15:30:10 +02:00
parent 71d321700b
commit ed16565535
1 changed files with 4 additions and 1 deletions

View File

@ -585,8 +585,11 @@ class WalletViewScreen extends StatelessWidget {
// _walletViewProvider.reload();
}),
inputFormatters: <TextInputFormatter>[
// FilteringTextInputFormatter.digitsOnly,
FilteringTextInputFormatter.deny(',',
replacementString: '.'),
FilteringTextInputFormatter.allow(
RegExp(r'^\d+\.?\d{0,2}')),
RegExp(r'(^\d*\.?\d{0,2})')),
],
// onChanged: (v) => _searchProvider.rebuildWidget(),
decoration: InputDecoration(