Answers for "flutter dropdown menu background color"

1

flutter dropdown menu background color

// Wrap it in a Theme() Widget like this
Theme(
	data: Theme.of(context).copyWith(canvasColor: Colors.green),
    child: DropdownButton(
                  value: yourValue,
                  icon: Icon(Icons.keyboard_arrow_down, color: Colors.white),
                  onChanged: (value) {
                    
                  },
                  items: yourItems,
                  style: TextStyle(color: Colors.white),
         ),
),
Posted by: Guest on July-08-2021

Code answers related to "flutter dropdown menu background color"

Browse Popular Code Answers by Language