OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 import 'animated_component.dart'; | 5 import 'animated_component.dart'; |
6 import '../animation/animated_value.dart'; | 6 import '../animation/animated_value.dart'; |
7 import '../fn.dart'; | 7 import '../fn2.dart'; |
8 import '../theme/colors.dart'; | 8 import '../theme/colors.dart'; |
9 import 'dart:async'; | 9 import 'dart:async'; |
10 import 'dart:math' as math; | 10 import 'dart:math' as math; |
11 import 'material.dart'; | 11 import 'material.dart'; |
12 import 'popup_menu_item.dart'; | 12 import 'popup_menu_item.dart'; |
13 | 13 |
14 const double _kMenuOpenDuration = 300.0; | 14 const double _kMenuOpenDuration = 300.0; |
15 const double _kMenuCloseDuration = 200.0; | 15 const double _kMenuCloseDuration = 200.0; |
16 const double _kMenuCloseDelay = 100.0; | 16 const double _kMenuCloseDelay = 100.0; |
17 | 17 |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 | 106 |
107 return new Material( | 107 return new Material( |
108 content: new Container( | 108 content: new Container( |
109 style: _style, | 109 style: _style, |
110 inlineStyle: _inlineStyle(), | 110 inlineStyle: _inlineStyle(), |
111 children: children | 111 children: children |
112 ), | 112 ), |
113 level: level); | 113 level: level); |
114 } | 114 } |
115 } | 115 } |
OLD | NEW |