在AppBar外面套一层PreferredSize:
appBar: PreferredSize(
child: AppBar(
title: Text('标题')
),
preferredSize: Size.fromHeight(50.0),
)
在AppBar外面套一层PreferredSize:
appBar: PreferredSize(
child: AppBar(
title: Text('标题')
),
preferredSize: Size.fromHeight(50.0),
)