Create management portal in Flutter #39

This commit is contained in:
2025-03-07 11:36:43 -06:00
parent 5ed74aa5af
commit 1d37822451
3 changed files with 243 additions and 35 deletions

View File

@ -121,11 +121,17 @@ class _AddMountScreenState extends State<AddMountScreen> {
if (_mount != null)
ElevatedButton.icon(
onPressed: () {
List<String> failed = [];
if (!validateSettings(_settings[_mountType]!, failed)) {
return;
}
Provider.of<MountList>(context, listen: false).add(
_mountType,
_mountNameController.text,
_settings[_mountType]!,
);
Navigator.pop(context);
},
label: const Text('Add'),