Skip to content

Instantly share code, notes, and snippets.

@trey-rosius
Created January 23, 2019 18:46
Show Gist options
  • Select an option

  • Save trey-rosius/7f45675fcecb68e7648af17c367a7bd2 to your computer and use it in GitHub Desktop.

Select an option

Save trey-rosius/7f45675fcecb68e7648af17c367a7bd2 to your computer and use it in GitHub Desktop.
AppBar(
elevation: 0.0,
backgroundColor: Theme.of(context).primaryColorDark,
//leading icon
leading: Icon(
CupertinoIcons.back,
color: Theme.of(context).accentColor,
),
// wrapped title in column
title: Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[
Text(
"Fruits Cake",
style: TextStyle(
fontSize: 22.0, color: Colors.white, letterSpacing: 2.0),
),
Text(
"Strawberry and Kiwi Special",
style: TextStyle(
color: Theme.of(context).primaryColor,
fontSize: 13.0,
letterSpacing: 3.0),
)
],
),
// favorite column
actions: <Widget>[
Padding(
padding: const EdgeInsets.all(8.0),
child: Icon(Icons.favorite_border,
color: Theme.of(context).accentColor),
)
],
),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment