Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(179)

Unified Diff: sky/sdk/lib/framework/components2/icon_button.dart

Issue 1146913005: Give the Stocks2 App a new improved toolbar. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sky/sdk/lib/framework/components2/icon_button.dart
diff --git a/sky/sdk/lib/framework/components2/icon_button.dart b/sky/sdk/lib/framework/components2/icon_button.dart
index 765f75bf80cf06fe01573ba91ed4580f260bf24e..9fc79dee59728907e7c1a0627d1d9e335e7a8d94 100644
--- a/sky/sdk/lib/framework/components2/icon_button.dart
+++ b/sky/sdk/lib/framework/components2/icon_button.dart
@@ -7,9 +7,6 @@ import '../rendering/box.dart';
import 'icon.dart';
class IconButton extends Component {
- static Style _style = new Style('''
- padding: 8px;''');
-
String icon;
GestureEventListener onGestureTap;
@@ -18,7 +15,9 @@ class IconButton extends Component {
UINode build() {
return new EventListenerNode(
- new StyleNode(new Icon(type: icon, size: 24), _style),
+ new Padding(
+ child: new Icon(type: icon, size: 24),
+ padding: const EdgeDims.all(8.0)),
onGestureTap: onGestureTap);
}
}

Powered by Google App Engine
This is Rietveld 408576698