Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change drawer header height

So I am wanting to change the header height of the drawer, as my intention for the drawer to be a settings page. But at the moment it is to thick. How would I do this. This is my sample code so far:

return Drawer(
  child: ListView(
    padding: EdgeInsets.zero,
    children: <Widget>[
      DrawerHeader(
        child: Text('Settings'),
      ),
    ]
  )
);
like image 465
C.Calzana Avatar asked Dec 30 '25 04:12

C.Calzana


1 Answers

You can Wrap Your Widget with Container.

Container(
   height: 50.0,
   child: DrawerHeader(
      child: Text('Setting'),
   ),
),
like image 198
Viren V Varasadiya Avatar answered Jan 01 '26 20:01

Viren V Varasadiya