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