How to implement drop down list in flutter?
Try this DropdownButton<String>( items: <String>[‘A’, ‘B’, ‘C’, ‘D’].map((String value) { return DropdownMenuItem<String>( value: value, child: Text(value), ); }).toList(), onChanged: (_) {}, )
Try this DropdownButton<String>( items: <String>[‘A’, ‘B’, ‘C’, ‘D’].map((String value) { return DropdownMenuItem<String>( value: value, child: Text(value), ); }).toList(), onChanged: (_) {}, )
Just add disabled as a class on your anchor: <a class=”dropdown-toggle disabled” href=”http://google.com”> Dropdown <b class=”caret”></b></a> So all together something like: <ul class=”nav”> <li class=”dropdown”> <a class=”dropdown-toggle disabled” href=”http://google.com”> Dropdown <b class=”caret”></b> </a> <ul class=”dropdown-menu”> <li><a href=”#”>Link 1</a></li> <li><a href=”#”>Link 2</a></li> </ul> </li> </ul>