Posts

Showing posts from June, 2022

Dropdown Widget Example

  DropdownButtonHideUnderline ( child : DropdownButton2 ( isExpanded : true , hint : Row ( children : const [ Icon ( Icons . list , size : 16 , color : Colors . yellow , ), SizedBox ( width : 4 , ), Expanded ( child : Text ( 'Select Item' , style : TextStyle ( fontSize : 14 , fontWeight : FontWeight . bold , color : Colors . yellow , ),

Speed Dial Builder in Flutter

 Code : class VehicleSpeedDial extends StatefulWidget { const VehicleSpeedDial ({ Key ? key }) : super ( key : key ); static const _vehicleNames = < String > [ 'foot' , 'hike' , 'wheelchair' , 'bike' , 'racingbike' , 'bike2' , 'mtb' , 'car' , 'car4wd' , 'motorcycle' ]; static const _icons = < IconData > [ Icons . directions_walk , Icons . hiking , Icons . wheelchair_pickup , Icons . pedal_bike , Icons . electric_bike_outlined , Icons . bike_scooter , Icons . directions_bike_outlined , Icons . car_repair , Icons . car_repair_outlined , Icons . motorcycle ]; @ override State < VehicleSpeedDial > createState () => _VehicleSpeedDialState (); } class _VehicleSpeedDialState extends State < VehicleSpeedDial > { ValueNotifier < bool > isDialOpen = ValueNotifier ( fal