dropdown wdget in flutter code example
Example: dropdown button flutter example
DropdownButton<String>(
value: 'Dept1',
elevation: 16,
icon: Icon(Icons.arrow_drop_down_circle),
isExpanded: true,
items: <String>['Dept1','Dept2'].map((e) {
return DropdownMenuItem(
value: e,
child: Text(e) ,
);
}).toList(),
onChanged: (value){},
),