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