From b49af31d2c5219118a4adc8ab4906106d19ed99a Mon Sep 17 00:00:00 2001 From: ibal Date: Tue, 8 Nov 2022 21:54:51 +0100 Subject: [PATCH] fix --- lib/main.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/main.dart b/lib/main.dart index 5bd0cd1..e4e5609 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -143,5 +143,5 @@ class MyCustomFormState extends StatelessWidget with InputValidationMixin { } mixin InputValidationMixin { - bool isInputValid(String value) => new RegExp(r'[0-9]+.?[0-9]*').hasMatch(value); + bool isInputValid(String value) => !new RegExp(r'[0-9]+.?[0-9]*').hasMatch(value); }