Updates work with latest Flutter changes

This commit is contained in:
Viktor Lidholt
2015-10-02 15:10:02 -07:00
parent b3dc369bd0
commit 4a7e6e9bcf
3 changed files with 11 additions and 24 deletions
-2
View File
@@ -11,5 +11,3 @@ dependency_overrides:
path: ../../sky/packages/sky
skysprites:
path: ../../skysprites
box2d:
path: ../../../../box2d.dart
+11 -20
View File
@@ -16,7 +16,6 @@ final AssetBundle _bundle = _initBundle();
ImageMap _images;
SpriteSheet _spriteSheet;
TestBedApp _app;
main() async {
_images = new ImageMap(_bundle);
@@ -28,29 +27,21 @@ main() async {
String json = await _bundle.loadString('assets/sprites.json');
_spriteSheet = new SpriteSheet(_images['assets/sprites.png'], json);
_app = new TestBedApp();
runApp(_app);
}
class TestBedApp extends App {
Widget build() {
ThemeData theme = new ThemeData(
runApp(new App(
title: 'Test Physics',
theme: new ThemeData(
brightness: ThemeBrightness.light,
primarySwatch: Colors.purple
);
return new Theme(
data: theme,
child: new Title(
title: 'Test Physics',
child: new SpriteWidget(
),
routes: {
'/': (navigator, route) {
return new SpriteWidget(
new TestBed(),
SpriteBoxTransformMode.letterbox
)
)
);
}
);
}
}
));
}
class TestBed extends NodeWithSize {
-2
View File
@@ -10,5 +10,3 @@ dependencies:
dependency_overrides:
sky:
path: ../sky/packages/sky
box2d:
path: ../../../box2d.dart