return Scaffold(
appBar: PreferredSize(
preferredSize: const Size.fromHeight(2),
child: AppBar(
title: null, // 隐藏文本
elevation: 0, // 移除AppBar下方的阴影
),
),
可以给一个低一点的高度,这样 不会占据屏幕上方的时间,信号等显示问题
return Scaffold(
appBar: PreferredSize(
preferredSize: const Size.fromHeight(2),
child: AppBar(
title: null, // 隐藏文本
elevation: 0, // 移除AppBar下方的阴影
),
),
可以给一个低一点的高度,这样 不会占据屏幕上方的时间,信号等显示问题