我一直在努力寻找一种方法来根据动作图标的大小和填充来适应AppBar的高度。当填充被提供给引导和动作图标时,它们从AppBar中被覆盖。有什么方法可以实现这个功能吗?This is how it should work
发布于 2021-07-14 22:58:13
您可以尝试根据设备高度设置应用程序栏高度
appBar: PreferredSize(
preferredSize: Size.fromHeight(MediaQuery.of(context).size.height * 0.2), // here the desired height
child: AppBar(
// ...
)
),https://stackoverflow.com/questions/68380213
复制相似问题