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;