Rename Icon's type paramter to icon

The name of the parameter wasn't consistent with IconButton or DrawerItem, etc.

Fixes #1871
This commit is contained in:
Adam Barth
2015-11-01 11:25:17 -08:00
parent 6ee6ae03c9
commit 74d6f33f5a
10 changed files with 16 additions and 16 deletions

View File

@@ -329,11 +329,11 @@ class CardCollectionState extends State<CardCollection> {
backgroundMessage = "Unsupported dismissDirection";
}
Widget leftArrowIcon = new Icon(type: 'navigation/arrow_back', size: IconSize.s36);
Widget leftArrowIcon = new Icon(icon: 'navigation/arrow_back', size: IconSize.s36);
if (_dismissDirection == DismissDirection.right)
leftArrowIcon = new Opacity(opacity: 0.1, child: leftArrowIcon);
Widget rightArrowIcon = new Icon(type: 'navigation/arrow_forward', size: IconSize.s36);
Widget rightArrowIcon = new Icon(icon: 'navigation/arrow_forward', size: IconSize.s36);
if (_dismissDirection == DismissDirection.left)
rightArrowIcon = new Opacity(opacity: 0.1, child: rightArrowIcon);