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:
Adam Barth
2016-03-02 10:08:12 -08:00
parent d6441b070c
commit bfc39aa843
8 changed files with 52 additions and 55 deletions

View File

@@ -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])
);
}

View File

@@ -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(),