Add AppBar iconTheme parameter (#4693)
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user