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

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

Issue 1215703010: Move home.dart into example/demo_launcher (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/sdk/example/demo_launcher/assets/stocks_thumbnail.png ('k') | sky/sdk/example/demo_launcher/sky.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/example/demo_launcher/lib/main.dart
diff --git a/sky/sdk/home.dart b/sky/sdk/example/demo_launcher/lib/main.dart
similarity index 86%
rename from sky/sdk/home.dart
rename to sky/sdk/example/demo_launcher/lib/main.dart
index 1addba1dce2e87d78dbb0f25d6014c5fa1451568..77eb51e3a5430b4cd2c86d89869022551a5483e0 100644
--- a/sky/sdk/home.dart
+++ b/sky/sdk/example/demo_launcher/lib/main.dart
@@ -54,32 +54,32 @@ class SkyDemo {
List<Widget> demos = [
new SkyDemo(
name: 'Stocks',
- href: 'example/stocks/lib/main.dart',
+ href: '../../stocks/lib/main.dart',
bundle: 'stocks.skyx',
description: 'Multi-screen app with scrolling list',
textTheme: typography.black,
decoration: new BoxDecoration(
backgroundImage: new BackgroundImage(
- src: 'example/stocks/thumbnail.png',
+ src: '../assets/stocks_thumbnail.png',
fit: BackgroundFit.cover
)
)
),
new SkyDemo(
name: 'Asteroids',
- href: 'example/game/main.dart',
+ href: '../../game/main.dart',
description: '2D game using sprite sheets to achieve high performance',
textTheme: typography.white,
decoration: new BoxDecoration(
backgroundImage: new BackgroundImage(
- src: 'example/game/res/thumbnail.png',
+ src: '../assets/game_thumbnail.png',
fit: BackgroundFit.cover
)
)
),
new SkyDemo(
name: 'Interactive Flex',
- href: 'example/rendering/interactive_flex.dart',
+ href: '../../rendering/interactive_flex.dart',
bundle: 'interactive_flex.skyx',
description: 'Swipe to adjust the layout of the app',
textTheme: typography.white,
@@ -89,33 +89,28 @@ List<Widget> demos = [
),
new SkyDemo(
name: 'Sector',
- href: 'example/widgets/sector.dart',
+ href: '../../widgets/sector.dart',
bundle: 'sector.skyx',
description: 'Demo of alternative layouts',
textTheme: typography.black,
decoration: new BoxDecoration(
backgroundColor: colors.Black,
backgroundImage: new BackgroundImage(
- src: 'example/widgets/sector_thumbnail.png',
+ src: '../assets/sector_thumbnail.png',
fit: BackgroundFit.cover
)
)
),
// new SkyDemo(
- // 'Touch Demo', 'examples/rendering/touch_demo.dart', 'Simple example showing handling of touch events at a low level'),
+ // 'Touch Demo', '../../rendering/touch_demo.dart', 'Simple example showing handling of touch events at a low level'),
new SkyDemo(
name: 'Minedigger Game',
- href: 'example/mine_digger/lib/main.dart',
+ href: '../../mine_digger/lib/main.dart',
bundle: 'mine_digger.skyx',
description: 'Clone of the classic Minesweeper game',
textTheme: typography.white
),
- // TODO(eseidel): We could use to separate these groups?
- // new SkyDemo('Old Stocks App', 'examples/stocks/main.sky'),
- // new SkyDemo('Old Touch Demo', 'examples/raw/touch-demo.sky'),
- // new SkyDemo('Old Spinning Square', 'examples/raw/spinning-square.sky'),
-
// TODO(jackson): This doesn't seem to be working
// new SkyDemo('Licenses', 'LICENSES.sky'),
];
« no previous file with comments | « sky/sdk/example/demo_launcher/assets/stocks_thumbnail.png ('k') | sky/sdk/example/demo_launcher/sky.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698