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) {
if (_mountType == mountType) {
return;
}
setState(() {
_mountType = mountType;
if (_mountType == "Sia" && _mountNameController.text.isEmpty) {
_mountNameController.text = 'default';
} else {
_mountNameController.text = '';
}
_mountNameController.text =
(mountType == "Sia" && _mountNameController.text.isEmpty)
? 'default'
: '';
_mount =
(_mountNameController.text.isEmpty)