
我有这个Drawerheader:
Drawerheader( child: Text('CategorIEs',style: TextStyle(color: colors.white)),decoration: Boxdecoration( color: colors.black ),margin: EdgeInsets.all(0.0),padding: EdgeInsets.all(0.0) )) 但我没有看到将高度设置为抽屉的方法,这太大了.
解决方法 你用Container小部件包装它.Container( height: 10.0,child: Drawerheader( child: Text('CategorIEs',decoration: Boxdecoration( color: colors.black ),padding: EdgeInsets.all(0.0) ),); 总结 以上是内存溢出为你收集整理的飞镖 – 有没有办法将高度设置为抽屉头?全部内容,希望文章能够帮你解决飞镖 – 有没有办法将高度设置为抽屉头?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)