Created
January 23, 2019 18:46
-
-
Save trey-rosius/7f45675fcecb68e7648af17c367a7bd2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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