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 library components_fixed_height_scrollable; | |
6 | |
7 import '../animation/scroll_behavior.dart'; | 5 import '../animation/scroll_behavior.dart'; |
8 import '../debug/tracing.dart'; | 6 import '../debug/tracing.dart'; |
9 import '../fn.dart'; | 7 import '../fn.dart'; |
10 import 'dart:math' as math; | 8 import 'dart:math' as math; |
11 import 'dart:async'; | 9 import 'dart:async'; |
12 import 'scrollable.dart'; | 10 import 'scrollable.dart'; |
13 | 11 |
14 abstract class FixedHeightScrollable extends Scrollable { | 12 abstract class FixedHeightScrollable extends Scrollable { |
15 static final Style _style = new Style(''' | 13 static final Style _style = new Style(''' |
16 overflow: hidden; | 14 overflow: hidden; |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 children: [ | 95 children: [ |
98 new Container( | 96 new Container( |
99 style: _scrollAreaStyle, | 97 style: _scrollAreaStyle, |
100 inlineStyle: transformStyle, | 98 inlineStyle: transformStyle, |
101 children: buildItems(itemNumber, drawCount) | 99 children: buildItems(itemNumber, drawCount) |
102 ) | 100 ) |
103 ] | 101 ] |
104 ); | 102 ); |
105 } | 103 } |
106 | 104 |
107 List<UINode> buildItems(int start, int count); | 105 List<UINode> buildItems(int start, int count); |
108 } | 106 } |
OLD | NEW |