Issue
I'm looking for a way to set the height to a Drawer Header. I have this DrawerHeader:
DrawerHeader(
child: Text('Categories', style: TextStyle(color: Colors.white)),
decoration: BoxDecoration(
color: Colors.black
),
margin: EdgeInsets.all(0.0),
)
)
But I don't see a way to set the Height to the Drawer, that's too big.
Solution
You wrap this with a Container
widget.
Container(
height: 10.0,
child: DrawerHeader(
child: Text('Categories', style: TextStyle(color: Colors.white)),
decoration: BoxDecoration(
color: Colors.black
),
margin: EdgeInsets.all(0.0),
padding: EdgeInsets.all(0.0)
),
);
Answered By - Shudipto Trafder
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.