Create management portal in Flutter #39

This commit is contained in:
Scott E. Graves 2025-03-07 12:31:00 -06:00
parent be6ee3ba07
commit eb7bfdddd1
2 changed files with 4 additions and 2 deletions

View File

@ -17,10 +17,12 @@ bool containsRestrictedChar(String value) {
'<', '<',
'>', '>',
'?', '?',
'[',
']',
'`', '`',
'{', '{',
'|',
'}', '}',
'|',
]; ];
return invalidChars.firstWhereOrNull((char) => value.contains(char)) != null; return invalidChars.firstWhereOrNull((char) => value.contains(char)) != null;
} }

View File

@ -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;
} }