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) {
|
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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user