From 5fd84db1d8f9fa545391ff1c793dc853419b7b65 Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Sun, 1 Nov 2015 11:25:17 -0800 Subject: [PATCH] Rename Icon's type paramter to icon The name of the parameter wasn't consistent with IconButton or DrawerItem, etc. Fixes #1871 --- engine/src/flutter/examples/address_book/lib/main.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/src/flutter/examples/address_book/lib/main.dart b/engine/src/flutter/examples/address_book/lib/main.dart index 4394946d93..e1066a1142 100644 --- a/engine/src/flutter/examples/address_book/lib/main.dart +++ b/engine/src/flutter/examples/address_book/lib/main.dart @@ -20,7 +20,7 @@ class Field extends StatelessComponent { return new Row([ 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 ); }