Fix format

This commit is contained in:
vaelio 2021-03-02 01:05:51 +01:00
parent 239fe44bd3
commit e894820c0c

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.isEmpty || (text.length == 4 && int.tryParse(text) >= 0)) {
return null;
}
return L10n.of(context).pleaseEnter4Digits;