xxxxxxxxxx
appBar: PreferredSize(
preferredSize: Size.fromHeight(200.0),
child: AppBar(
automaticallyImplyLeading: false,
flexibleSpace: Image(
image: AssetImage('assets/images/banner_image.jpg'),
fit: BoxFit.cover,
),
backgroundColor: Colors.transparent,
)
),
xxxxxxxxxx
appBar: PreferredSize(
preferredSize: Size.fromHeight(100.0),
child: AppBar(
automaticallyImplyLeading: false, // hides leading widget
flexibleSpace: SomeWidget(),
)
),
xxxxxxxxxx
AppBar(
title: Text('My App'),
// Set the desired height for the AppBar
toolbarHeight: 80,
// Wrap AppBar with PreferredSize and set preferredSize property
bottom: PreferredSize(
preferredSize: Size.fromHeight(80),
child: Container(
height: 80,
child: Row(
// AppBar content
),
),
),
);