How To Change Color Icon Dropdownmenuitem In Flutter

[Solved] How To Change Color Icon Dropdownmenuitem In Flutter | Dart - Code Explorer | yomemimo.com
Question : how to change color icon DropdownMenuItem in flutter

Answered by : sparkling-skimmer-4wrqs80x0nz8

DropdownButton<int>( value: null, iconSize: 0, hint: Row( children: <Widget>[ Text(_selected, style: TextStyle( color: Colors.white, fontWeight: FontWeight.w700, ), ), Padding( padding: EdgeInsets.only(left: 5), child: Icon( FontAwesomeIcons.caretDown, color: Colors.white, size: 20, ), ), ], ), items: dateRanges.map((Map<String, dynamic> value) { return DropdownMenuItem<int>( value: value['type'], child: Text( value['name'], style: TextStyle( color: Colors.grey[800], fontWeight: FontWeight.w700, ), ), ); }).toList(), onChanged: (type) => _onDateRangeTypeChanged(type),
)

Source : https://stackoverflow.com/questions/53925692/how-to-change-the-dropdownbuttons-icon-color-flutter | Last Update : Thu, 25 Mar 21

Answers related to how to change color icon dropdownmenuitem in flutter

Code Explorer Popular Question For Dart