I wanted to control a drop-down button and make it unclickable using a button.
Is there any way to make it disable. Basically not allowing it able to change.
new DropdownButton( value: animalName, items: animals.map( (String value) { return new DropdownMenuItem<String>( value: value, child: new Text('$value'), ); }, ).toList(), onChanged: (value) { setState(() { animalName = value; }); }, ),
So this is the code I currently use on the drop-down button, but i cant disabled it.
1 : the power or authority to manage The city wanted local control of education. 2 : ability to keep within bounds or direct the operation of The fire is out of control. He lost control of the car. 3 : self-restraint I lost control and started yelling. 4 : regulation sense 2 price controls.
While Control takes inspiration from The SCP Foundation, a retail SCP game wouldn't actually be possible due to how the work submitted to the website is licensed under Creative Commons copyright.
Control's lore is rich and engrossing, and the best way to delve into it is by taking on combat challenges. The combat is experimental and satisfying, and the best way to get better at it is by exploring the game's fiction. If you're not into either of these elements, you won't like Control.
Control – the AAA third-person action adventure game – is FREE for a limited time!
Found this in the DropdownButton
docs:
If items or onChanged is null, the button will be disabled, the down arrow will be grayed out, and the disabledHint will be shown (if provided)
DropdownButton( onChanged: null, items: [...], )
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With