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

Side by Side Diff: sky/framework/components/fixed_height_scrollable.dart

Issue 1006053002: Allow Effen Styles to be extendable (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: sdfsd Created 5 years, 9 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 '../animation/scroll_behavior.dart'; 5 import '../animation/scroll_behavior.dart';
6 import '../fn.dart'; 6 import '../fn.dart';
7 import 'dart:math' as math; 7 import 'dart:math' as math;
8 import 'dart:sky' as sky; 8 import 'dart:sky' as sky;
9 import 'scrollable.dart'; 9 import 'scrollable.dart';
10 10
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 double drawStart = scrollOffset + alignmentDelta; 68 double drawStart = scrollOffset + alignmentDelta;
69 itemNumber = (drawStart / _itemHeight).floor(); 69 itemNumber = (drawStart / _itemHeight).floor();
70 70
71 transformStyle = 71 transformStyle =
72 'transform: translateY(${(alignmentDelta).toStringAsFixed(2)}px)'; 72 'transform: translateY(${(alignmentDelta).toStringAsFixed(2)}px)';
73 } 73 }
74 } 74 }
75 75
76 return new Container( 76 return new Container(
77 styles: [_style], 77 style: _style,
78 children: [ 78 children: [
79 new Container( 79 new Container(
80 styles: [_scrollAreaStyle], 80 style: _scrollAreaStyle,
81 inlineStyle: transformStyle, 81 inlineStyle: transformStyle,
82 children: buildItems(itemNumber, drawCount) 82 children: buildItems(itemNumber, drawCount)
83 ) 83 )
84 ] 84 ]
85 ); 85 );
86 } 86 }
87 } 87 }
OLDNEW
« no previous file with comments | « sky/framework/components/drawer_header.dart ('k') | sky/framework/components/floating_action_button.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698