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

Side by Side Diff: sky/examples/fn/widgets/drawer.dart

Issue 974903005: attempt at making menuitems react (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: rationalise my local client and upload the result Created 5 years, 9 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 unified diff | Download patch
« no previous file with comments | « sky/examples/fn/widgets/checkbox.dart ('k') | sky/examples/fn/widgets/material.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 part of widgets; 1 part of widgets;
2 2
3 const double _kWidth = 256.0; 3 const double _kWidth = 256.0;
4 const double _kMinFlingVelocity = 0.4; 4 const double _kMinFlingVelocity = 0.4;
5 const double _kMinAnimationDurationMS = 246.0; 5 const double _kMinAnimationDurationMS = 246.0;
6 const double _kMaxAnimationDurationMS = 600.0; 6 const double _kMaxAnimationDurationMS = 600.0;
7 const Cubic _kAnimationCurve = easeOut; 7 const Cubic _kAnimationCurve = easeOut;
8 8
9 class DrawerAnimation { 9 class DrawerAnimation {
10 10
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 top: 0; 113 top: 0;
114 left: 0; 114 left: 0;
115 bottom: 0; 115 bottom: 0;
116 right: 0;''' 116 right: 0;'''
117 ); 117 );
118 118
119 static Style _contentStyle = new Style(''' 119 static Style _contentStyle = new Style('''
120 background-color: #FAFAFA; 120 background-color: #FAFAFA;
121 will-change: transform; 121 will-change: transform;
122 position: absolute; 122 position: absolute;
123 z-index: 3;
123 width: 256px; 124 width: 256px;
124 top: 0; 125 top: 0;
125 left: 0; 126 left: 0;
126 bottom: 0;''' 127 bottom: 0;'''
127 ); 128 );
128 129
129 Stream<double> onPositionChanged; 130 Stream<double> onPositionChanged;
130 sky.EventListener handleMaskFling; 131 sky.EventListener handleMaskFling;
131 sky.EventListener handleMaskTap; 132 sky.EventListener handleMaskTap;
132 sky.EventListener handlePointerCancel; 133 sky.EventListener handlePointerCancel;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 new Container( 191 new Container(
191 key: 'Content', 192 key: 'Content',
192 style: _contentStyle, 193 style: _contentStyle,
193 inlineStyle: contentInlineStyle, 194 inlineStyle: contentInlineStyle,
194 children: children 195 children: children
195 ) 196 )
196 ] 197 ]
197 ); 198 );
198 } 199 }
199 } 200 }
OLDNEW
« no previous file with comments | « sky/examples/fn/widgets/checkbox.dart ('k') | sky/examples/fn/widgets/material.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698