title: control & disable a dropdown button in flutter?
body: <p>I wanted to control a drop-down button and make it unclickable using a button.</p>
  
  <p>Is there any way to make it disable. Basically not allowing it able to change.</p>
  
  <pre><code>new DropdownButton(
            value: animalName,
            items: animals.map(
              (String value) {
                return new DropdownMenuItem&lt;String&gt;(
                  value: value,
                  child: new Text('$value'),
                );
              },
            ).toList(),
            onChanged: (value) {
              setState(() {
                animalName = value;
              });
            },
          ),
  </code></pre>
  
  <p>So this is the code I currently use on the drop-down button, but i cant disabled it.</p>