I want to change the default color and size of the Drawer widget icon in flutter. I beleive that it's possible but I just can't find how to do it.
Thanks
I want to change the default color and size of the Drawer widget icon in flutter. I beleive that it's possible but I just can't find how to do it.
Thanks
Try below code hope its helpful to you.
IconThemeData class here for Defines the color, opacity, and size of icons.
IconTheme class here for Controls the default color, opacity, and size of icons in a widget subtree.
return Scaffold(
appBar: AppBar(
title: Text('Your Title'),
iconTheme: IconThemeData(
size: 40,//change size on your need
color: Colors.red,//change color on your need
),
),
drawer: Drawer(),
);