OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |