Flutter如何设置appBar的高度
时间:2020-03-19 23:54:30
收藏:0
阅读:286
Scaffold( appBar: PreferredSize( child: AppBar( ), preferredSize: Size.fromHeight(screenSize.height)) );
使用脚手架Scaffold可以设置AppBar。
如果需要设置高度,在AppBar外包一层PreferredSize,设置preferredSize的属性为想要的高度即可。
原文:https://www.cnblogs.com/xiaochii/p/12528281.html
评论(0)