Create management portal in Flutter #39
This commit is contained in:
parent
6e8f843252
commit
71789f6cdb
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user