AppBar(
backgroundColor: Colors.red,
title: new Text("Title",),
elevation: 4.0,
centerTitle: true,
),
| |
AppBar(
title: new Text("Title"),
actions: [
new IconButton(
icon: new Icon(Icons.search),
onPressed: () {},
),
new IconButton(
icon: new Icon(Icons.add),
onPressed: () {},
),
],
),
| |
AppBar(
backgroundColor: Colors.blueAccent,
title: new Text("Title"),
actions: [
new IconButton(
icon: new Icon(Icons.search),
onPressed: () {},
),
],
iconTheme: IconThemeData(
color: Colors.white,
),
textTheme: TextTheme(
title: TextStyle(
color: Colors.white,
fontSize: 20.0
),
),
),
| |
AppBar(
automaticallyImplyLeading: false,
title: Center(
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisSize: MainAxisSize.max,
mainAxisAlignment: MainAxisAlignment.center,
children: [
new Text(
"Title",
style: TextStyle(fontSize: 18.0),
),
new Text(
"subtitle",
style: TextStyle(fontSize: 14.0),
),
],
),
),
),
| |
AppBar(
automaticallyImplyLeading: false,
backgroundColor: Colors.yellow,
title: Row(
mainAxisAlignment: MainAxisAlignment.start,
mainAxisSize: MainAxisSize.max,
children: [
new FlutterLogo(),
Padding(
padding: const EdgeInsets.only(left: 16.0),
child: new Text(
"Title with image",
),
),
],
),
),
| |
AppBar(
backgroundColor: Colors.transparent,
title: Text("Transparent AppBar"),
actions: [
IconButton(
icon: Icon(
Icons.search,
),
onPressed: () {},
)
],
),
| |