Create management portal in Flutter #39

This commit is contained in:
Scott E. Graves 2025-03-14 18:57:04 -05:00
parent 6e8f843252
commit 71789f6cdb

View File

@ -187,13 +187,16 @@ class _AddMountScreenState extends State<AddMountScreen> {
} }
void _handleChange(String mountType) { void _handleChange(String mountType) {
if (_mountType == mountType) {
return;
}
setState(() { setState(() {
_mountType = mountType; _mountType = mountType;
if (_mountType == "Sia" && _mountNameController.text.isEmpty) { _mountNameController.text =
_mountNameController.text = 'default'; (mountType == "Sia" && _mountNameController.text.isEmpty)
} else { ? 'default'
_mountNameController.text = ''; : '';
}
_mount = _mount =
(_mountNameController.text.isEmpty) (_mountNameController.text.isEmpty)