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

Side by Side Diff: sky/sdk/example/widgets/tabs.dart

Issue 1217573003: Fix all the components to pick the right colours from the theme. (Closed) Base URL: https://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 unified diff | Download patch
« no previous file with comments | « sky/sdk/example/widgets/sector.dart ('k') | sky/sdk/lib/painting/text_style.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 'package:sky/painting/text_style.dart'; 5 import 'package:sky/painting/text_style.dart';
6 import 'package:sky/theme/typography.dart'; 6 import 'package:sky/theme/typography.dart';
7 import 'package:sky/widgets/basic.dart'; 7 import 'package:sky/widgets/basic.dart';
8 import 'package:sky/widgets/material.dart'; 8 import 'package:sky/widgets/material.dart';
9 import 'package:sky/widgets/scaffold.dart'; 9 import 'package:sky/widgets/scaffold.dart';
10 import 'package:sky/widgets/tabs.dart'; 10 import 'package:sky/widgets/tabs.dart';
11 import 'package:sky/widgets/tool_bar.dart'; 11 import 'package:sky/widgets/tool_bar.dart';
12 import 'package:sky/widgets/widget.dart'; 12 import 'package:sky/widgets/widget.dart';
13 13
14 class TabbedNavigatorApp extends App { 14 class TabbedNavigatorApp extends App {
15 int selectedIndex = 0; 15 int selectedIndex = 0;
16 16
17 Widget _buildContent(String label) { 17 Widget _buildContent(String label) {
18 return new Center( 18 return new Center(
19 child: new Text(label, style: const TextStyle(fontSize: 48.0, fontWeight: extraBold)) 19 child: new Text(label, style: const TextStyle(fontSize: 48.0, fontWeight: FontWeight.w800))
20 ); 20 );
21 } 21 }
22 22
23 Widget build() { 23 Widget build() {
24 List<TabNavigatorView> views = <TabNavigatorView>[ 24 List<TabNavigatorView> views = <TabNavigatorView>[
25 new TabNavigatorView( 25 new TabNavigatorView(
26 label: const TabLabel(text: 'STOCKS', icon: 'action/list_white'), 26 label: const TabLabel(text: 'STOCKS', icon: 'action/list_white'),
27 builder: () => _buildContent("Stocks") 27 builder: () => _buildContent("Stocks")
28 ), 28 ),
29 new TabNavigatorView( 29 new TabNavigatorView(
(...skipping 21 matching lines...) Expand all
51 return new Scaffold( 51 return new Scaffold(
52 toolbar: toolbar, 52 toolbar: toolbar,
53 body: new Material(child: tabNavigator) 53 body: new Material(child: tabNavigator)
54 ); 54 );
55 } 55 }
56 } 56 }
57 57
58 void main() { 58 void main() {
59 runApp(new TabbedNavigatorApp()); 59 runApp(new TabbedNavigatorApp());
60 } 60 }
OLDNEW
« no previous file with comments | « sky/sdk/example/widgets/sector.dart ('k') | sky/sdk/lib/painting/text_style.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698