Want to set Height to a Drawer Header in Flutter? You wrap this with Container widget. Below is an example to set Height to a Drawer Header.
1 2 3 4 5 6 7 8 9 10 11 |
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) ), ); |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.