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:
@@ -20,7 +20,7 @@ class Field extends StatelessComponent {
|
||||
return new Row(<Widget>[
|
||||
new Padding(
|
||||
padding: const EdgeDims.symmetric(horizontal: 16.0),
|
||||
child: new Icon(type: icon)
|
||||
child: new Icon(icon: icon)
|
||||
),
|
||||
new Flexible(
|
||||
child: new Input(
|
||||
@@ -43,7 +43,7 @@ class AddressBookHome extends StatelessComponent {
|
||||
|
||||
Widget buildFloatingActionButton(BuildContext context) {
|
||||
return new FloatingActionButton(
|
||||
child: new Icon(type: 'image/photo_camera'),
|
||||
child: new Icon(icon: 'image/photo_camera'),
|
||||
backgroundColor: Theme.of(context).accentColor
|
||||
);
|
||||
}
|
||||
|
||||
@@ -200,7 +200,7 @@ class FeedFragmentState extends State<FeedFragment> {
|
||||
switch (_fitnessMode) {
|
||||
case FitnessMode.feed:
|
||||
return new FloatingActionButton(
|
||||
child: new Icon(type: 'content/add'),
|
||||
child: new Icon(icon: 'content/add'),
|
||||
onPressed: _handleActionButtonPressed
|
||||
);
|
||||
case FitnessMode.chart:
|
||||
|
||||
@@ -252,7 +252,7 @@ class StockHomeState extends State<StockHome> {
|
||||
|
||||
Widget buildFloatingActionButton() {
|
||||
return new FloatingActionButton(
|
||||
child: new Icon(type: 'content/add'),
|
||||
child: new Icon(icon: 'content/add'),
|
||||
backgroundColor: Colors.redAccent[200],
|
||||
onPressed: _handleStockPurchased
|
||||
);
|
||||
|
||||
@@ -62,7 +62,7 @@ Future showStockMenu({BuildContext context, bool autorefresh, ValueChanged<bool>
|
||||
new FlatButton(
|
||||
child: new Row(<Widget>[
|
||||
new Icon(
|
||||
type: 'device/dvr',
|
||||
icon: 'device/dvr',
|
||||
size: IconSize.s18
|
||||
),
|
||||
new Container(
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user