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

Unified Diff: sky/sdk/lib/widgets/tabs.dart

Issue 1233463002: Ban dart:mirrors in Sky (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/core/script/dart_init.cc ('k') | sky/tools/packager/vm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/widgets/tabs.dart
diff --git a/sky/sdk/lib/widgets/tabs.dart b/sky/sdk/lib/widgets/tabs.dart
index 5812413fef1f657f97334027da45122fa42ce2e7..f171edf852385275d9372c5423083c980e559063 100644
--- a/sky/sdk/lib/widgets/tabs.dart
+++ b/sky/sdk/lib/widgets/tabs.dart
@@ -228,7 +228,7 @@ class RenderTabBar extends RenderBox with
void paint(PaintingCanvas canvas, Offset offset) {
if (backgroundColor != null) {
- double width = layoutWidths != null
+ double width = layoutWidths != null
? layoutWidths.reduce((sum, width) => sum + width)
: size.width;
Rect rect = offset & new Size(width, size.height);
@@ -256,13 +256,13 @@ class TabBarWrapper extends MultiChildRenderObjectWrapper {
this.textAndIcons,
this.scrollable: false,
this.onLayoutChanged,
- String key
+ String key
}) : super(key: key, children: children);
final int selectedIndex;
final Color backgroundColor;
final Color indicatorColor;
- final bool textAndIcons;
+ final bool textAndIcons;
final bool scrollable;
final LayoutChanged onLayoutChanged;
@@ -324,7 +324,7 @@ class Tab extends Component {
margin: const EdgeDims.only(bottom: 10.0)
),
_buildLabelText()
- ],
+ ],
justifyContent: FlexJustifyContent.center,
alignItems: FlexAlignItems.center,
direction: FlexDirection.vertical
@@ -332,7 +332,7 @@ class Tab extends Component {
}
Widget highlightedLabel = new Opacity(
- child: labelContents,
+ child: labelContents,
opacity: selected ? 1.0 : 0.7
);
@@ -441,7 +441,7 @@ class TabBar extends Scrollable {
}
TabBarWrapper tabBarWrapper = new TabBarWrapper(
- children: tabs,
+ children: tabs,
selectedIndex: selectedIndex,
backgroundColor: backgroundColor,
indicatorColor: indicatorColor,
« no previous file with comments | « sky/engine/core/script/dart_init.cc ('k') | sky/tools/packager/vm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698