From e894820c0c6c903cddf5ee9ec1bafd33da838d98 Mon Sep 17 00:00:00 2001 From: vaelio Date: Tue, 2 Mar 2021 01:05:51 +0100 Subject: [PATCH] Fix format --- lib/views/settings.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/views/settings.dart b/lib/views/settings.dart index e6d41085..f8d69f3e 100644 --- a/lib/views/settings.dart +++ b/lib/views/settings.dart @@ -315,7 +315,7 @@ class _SettingsState extends State { textFields: [ DialogTextField( validator: (text) { - if (text.length == 0 || (text.length == 4 && int.tryParse(text) >= 0)) { + if (text.isEmpty || (text.length == 4 && int.tryParse(text) >= 0)) { return null; } return L10n.of(context).pleaseEnter4Digits;