Create management portal in Flutter #39
This commit is contained in:
parent
be6ee3ba07
commit
eb7bfdddd1
@ -17,10 +17,12 @@ bool containsRestrictedChar(String value) {
|
|||||||
'<',
|
'<',
|
||||||
'>',
|
'>',
|
||||||
'?',
|
'?',
|
||||||
|
'[',
|
||||||
|
']',
|
||||||
'`',
|
'`',
|
||||||
'{',
|
'{',
|
||||||
'|',
|
|
||||||
'}',
|
'}',
|
||||||
|
'|',
|
||||||
];
|
];
|
||||||
return invalidChars.firstWhereOrNull((char) => value.contains(char)) != null;
|
return invalidChars.firstWhereOrNull((char) => value.contains(char)) != null;
|
||||||
}
|
}
|
||||||
|
@ -82,7 +82,7 @@ class _MountSettingsWidgetState extends State<MountSettingsWidget> {
|
|||||||
);
|
);
|
||||||
if (result != null) {
|
if (result != null) {
|
||||||
ScaffoldMessenger.of(context).showSnackBar(
|
ScaffoldMessenger.of(context).showSnackBar(
|
||||||
SnackBar(content: Text('$key must be valid')),
|
SnackBar(content: Text("'$key' is not valid")),
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user