Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(349)

Side by Side Diff: sky/sdk/lib/framework/widgets/fixed_height_scrollable.dart

Issue 1177243002: Refactor fn2.dart, since it breached our 1000-line threshold. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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;
6
7 import 'package:vector_math/vector_math.dart';
8
5 import '../animation/scroll_behavior.dart'; 9 import '../animation/scroll_behavior.dart';
6 import '../fn2.dart';
7 import 'dart:async';
8 import 'dart:math' as math;
9 import 'package:vector_math/vector_math.dart';
10 import 'scrollable.dart'; 10 import 'scrollable.dart';
11 import 'wrappers.dart';
11 12
12 abstract class FixedHeightScrollable extends Scrollable { 13 abstract class FixedHeightScrollable extends Scrollable {
13 14
14 FixedHeightScrollable({ this.itemHeight, Object key }) : super(key: key) { 15 FixedHeightScrollable({ this.itemHeight, Object key }) : super(key: key) {
15 assert(itemHeight != null); 16 assert(itemHeight != null);
16 } 17 }
17 18
18 double itemHeight; 19 double itemHeight;
19 20
20 void syncFields(FixedHeightScrollable source) { 21 void syncFields(FixedHeightScrollable source) {
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 child: new Block(buildItems(itemShowIndex, itemShowCount)) 79 child: new Block(buildItems(itemShowIndex, itemShowCount))
79 ) 80 )
80 ) 81 )
81 ) 82 )
82 ); 83 );
83 } 84 }
84 85
85 List<UINode> buildItems(int start, int count); 86 List<UINode> buildItems(int start, int count);
86 87
87 } 88 }
OLDNEW
« no previous file with comments | « sky/sdk/lib/framework/widgets/drawer_header.dart ('k') | sky/sdk/lib/framework/widgets/floating_action_button.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698