Skip to content

Commit 8e5d1e3

Browse files
committed
update FilteringTextInputFormatter
1 parent e6dbbdc commit 8e5d1e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/test/demo_text_field_page.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class _DemoTextFieldPageState extends State<DemoTextFieldPage> {
4949
)),
5050
),
5151
inputFormatters: [
52-
FilteringTextInputFormatter.allow(RegExp('^[0-9]*\$'))
52+
FilteringTextInputFormatter.digitsOnly
5353
],
5454
),
5555
),

0 commit comments

Comments
 (0)