Answers for "flutter drawer width"

3

flutter drawer size

// wrap drawer with Container
drawer: Container(
      width: 50,
      child: Drawer(
        child: ListView(
          padding: EdgeInsets.zero,
          children: <Widget>[
            UserAccountsDrawerHeader(
              accountName: Text('Test123'),
              accountEmail: Text('[email protected]'),
            ListTile(
              title: Text('data'),
            ),
          ],
        ),
      ),
    ),
Posted by: Guest on October-13-2020
1

DrawerHeader height flutter

Container(
	height: 100,
	child: DrawerHeader(
    	child: Text('Drawer Header'),
        decoration: BoxDecoration(
                    	color: Colors.black
                    ),
    ),
);
Posted by: Guest on May-13-2020
0

how to control the size of a drawer header flutter

// you simply wrap it with a sized box or a container and give it the height you want
SizedBox(
          height: 80,
          child: DrawerHeader(
Posted by: Guest on November-22-2021

Code answers related to "Dart"

Browse Popular Code Answers by Language