Remove IconThemeColor
This enum doesn't make sense anymore now that we can arbitrarily colorize icons. Instead, we just use a Color, which is both simpler and can be interpolated during animations. Fixes #1279
This commit is contained in:
@@ -120,7 +120,7 @@ class CardCollectionState extends State<CardCollection> {
|
||||
Widget _buildDrawer() {
|
||||
return new Drawer(
|
||||
child: new IconTheme(
|
||||
data: const IconThemeData(color: IconThemeColor.black),
|
||||
data: const IconThemeData(color: Colors.black),
|
||||
child: new Block(children: <Widget>[
|
||||
new DrawerHeader(child: new Text('Options')),
|
||||
buildDrawerCheckbox("Make card labels editable", _editable, _toggleEditable),
|
||||
@@ -385,7 +385,7 @@ class CardCollectionState extends State<CardCollection> {
|
||||
|
||||
return new IconTheme(
|
||||
key: cardModel.key,
|
||||
data: const IconThemeData(color: IconThemeColor.white),
|
||||
data: const IconThemeData(color: Colors.white),
|
||||
child: new Stack(children: <Widget>[background, card])
|
||||
);
|
||||
}
|
||||
|
||||
@@ -124,7 +124,7 @@ class PageableListAppState extends State<PageableListApp> {
|
||||
|
||||
Widget build(BuildContext context) {
|
||||
return new IconTheme(
|
||||
data: const IconThemeData(color: IconThemeColor.white),
|
||||
data: const IconThemeData(color: Colors.white),
|
||||
child: new Scaffold(
|
||||
toolBar: _buildToolBar(),
|
||||
drawer: _buildDrawer(),
|
||||
|
||||
Reference in New Issue
Block a user