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

Unified Diff: sky/examples/stocks-fn/stocksapp.dart

Issue 975863003: Don't hardcode the list of events types in fn (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: More careful event syncing Created 5 years, 10 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
« no previous file with comments | « sky/examples/fn/widgets/radio.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/stocks-fn/stocksapp.dart
diff --git a/sky/examples/stocks-fn/stocksapp.dart b/sky/examples/stocks-fn/stocksapp.dart
index 501383c5de637f8851a0f2d942e12a644be4563f..562e615d1435503a8f72724a3ca9ee0295c4eb2b 100644
--- a/sky/examples/stocks-fn/stocksapp.dart
+++ b/sky/examples/stocks-fn/stocksapp.dart
@@ -37,13 +37,7 @@ class StocksApp extends App {
Node render() {
var drawer = new Drawer(
- onPositionChanged: _drawerAnimation.onPositionChanged,
- handleMaskFling: _drawerAnimation.handleFlingStart,
- handleMaskTap: _drawerAnimation.handleMaskTap,
- handlePointerCancel: _drawerAnimation.handlePointerCancel,
- handlePointerDown: _drawerAnimation.handlePointerDown,
- handlePointerMove: _drawerAnimation.handlePointerMove,
- handlePointerUp: _drawerAnimation.handlePointerUp,
+ animation: _drawerAnimation,
children: [
new DrawerHeader(
children: [new Text('Stocks')]
@@ -76,9 +70,9 @@ class StocksApp extends App {
var toolbar = new Toolbar(
children: [
new Icon(key: 'menu', style: _iconStyle,
- onClick: _drawerAnimation.toggle,
size: 24,
- type: 'navigation/menu_white'),
+ type: 'navigation/menu_white')
+ ..events.listen('click', _drawerAnimation.toggle),
new Container(
style: _titleStyle,
children: [new Text('I am a stocks app')]
« no previous file with comments | « sky/examples/fn/widgets/radio.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698