Add AppBar iconTheme parameter (#4693)

This commit is contained in:
Hans Muller
2016-06-22 15:19:31 -07:00
committed by GitHub
parent e5eabf24fa
commit bb2e7b5250
3 changed files with 27 additions and 26 deletions

View File

@@ -88,6 +88,8 @@ class ShrinePageState extends State<ShrinePage> {
appBar: new AppBar(
elevation: _appBarElevation,
backgroundColor: Theme.of(context).cardColor,
iconTheme: Theme.of(context).iconTheme,
brightness: Brightness.light,
flexibleSpace: new Container(
decoration: new BoxDecoration(
border: new Border(

View File

@@ -14,13 +14,11 @@ import 'shrine/shrine_theme.dart' show ShrineTheme;
// isn't a standalone app with its own main() and MaterialApp.
Widget buildShrine(Widget child) {
return new Theme(
data: new ThemeData(primarySwatch: Colors.grey),
child: new IconTheme(
data: new IconThemeData(color: const Color(0xFF707070)),
child: new ShrineTheme(
child: child
)
)
data: new ThemeData(
primarySwatch: Colors.grey,
iconTheme: new IconThemeData(color: const Color(0xFF707070))
),
child: new ShrineTheme(child: child)
);
}