This commit is contained in:
Valentin Eudeline 2021-02-25 09:51:50 +00:00
parent 180a35b686
commit 239fe44bd3
1 changed files with 1 additions and 1 deletions

View File

@ -315,7 +315,7 @@ class _SettingsState extends State<Settings> {
textFields: [
DialogTextField(
validator: (text) {
if (text.length == 0 || (text.length == 4 && int.tryParse(text) > 0)) {
if (text.length == 0 || (text.length == 4 && int.tryParse(text) >= 0)) {
return null;
}
return L10n.of(context).pleaseEnter4Digits;