| 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 'dart:math' as math; | 5 import 'dart:math' as math; |
| 6 | 6 |
| 7 import 'package:vector_math/vector_math.dart'; | 7 import 'package:vector_math/vector_math.dart'; |
| 8 | 8 |
| 9 import '../framework/animation/scroll_behavior.dart'; | 9 import '../animation/scroll_behavior.dart'; |
| 10 import 'basic.dart'; | 10 import 'basic.dart'; |
| 11 import 'scrollable.dart'; | 11 import 'scrollable.dart'; |
| 12 | 12 |
| 13 abstract class FixedHeightScrollable extends Scrollable { | 13 abstract class FixedHeightScrollable extends Scrollable { |
| 14 | 14 |
| 15 FixedHeightScrollable({ String key, this.itemHeight, Color backgroundColor }) | 15 FixedHeightScrollable({ String key, this.itemHeight, Color backgroundColor }) |
| 16 : super(key: key, backgroundColor: backgroundColor) { | 16 : super(key: key, backgroundColor: backgroundColor) { |
| 17 assert(itemHeight != null); | 17 assert(itemHeight != null); |
| 18 } | 18 } |
| 19 | 19 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 transform: transform, | 78 transform: transform, |
| 79 child: new Block(items) | 79 child: new Block(items) |
| 80 ) | 80 ) |
| 81 ) | 81 ) |
| 82 ); | 82 ); |
| 83 } | 83 } |
| 84 | 84 |
| 85 List<Widget> buildItems(int start, int count); | 85 List<Widget> buildItems(int start, int count); |
| 86 | 86 |
| 87 } | 87 } |
| OLD | NEW |