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

Unified Diff: sky/sdk/example/fitness/lib/main.dart

Issue 1232103006: Add Cards and Fitness demos, remove sector. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Add TaskDescriptions to the new demos 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/sdk/example/demo_launcher/lib/main.dart ('k') | sky/sdk/example/widgets/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/example/fitness/lib/main.dart
diff --git a/sky/sdk/example/fitness/lib/main.dart b/sky/sdk/example/fitness/lib/main.dart
index f407a086eb318ca70f2ca9eae2f980a95721405c..7712fed2918e24d55e08db2e264bca872e9903f1 100644
--- a/sky/sdk/example/fitness/lib/main.dart
+++ b/sky/sdk/example/fitness/lib/main.dart
@@ -7,6 +7,7 @@ import 'package:sky/widgets/basic.dart';
import 'package:sky/widgets/navigator.dart';
import 'package:sky/widgets/theme.dart';
import 'package:sky/widgets/widget.dart';
+import 'package:sky/widgets/task_description.dart';
import 'measurement.dart';
import 'home.dart';
@@ -20,7 +21,7 @@ class FitnessApp extends App {
void initState() {
_navigationState = new NavigationState([
new Route(
- name: '/',
+ name: '/',
builder: (navigator, route) => new HomeFragment(navigator, _userData)
),
new Route(
@@ -61,7 +62,10 @@ class FitnessApp extends App {
primarySwatch: colors.Indigo,
accentColor: colors.PinkAccent[200]
),
- child: new Navigator(_navigationState)
+ child: new TaskDescription(
+ label: 'Fitness',
+ child: new Navigator(_navigationState)
+ )
);
}
}
« no previous file with comments | « sky/sdk/example/demo_launcher/lib/main.dart ('k') | sky/sdk/example/widgets/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698