Rename App to MaterialApp

MaterialApp assumes that you're using material design.

Also move radial reaction and fix imports for stats box.
This commit is contained in:
Adam Barth
2015-10-09 10:19:35 -07:00
parent cceb4187cc
commit db3b9e8052
27 changed files with 36 additions and 40 deletions

View File

@@ -53,7 +53,7 @@ class TestAppState extends State<TestApp> {
];
Widget build(BuildContext context) {
return new App(
return new MaterialApp(
title: 'EffectLine Demo',
theme: _theme,
routes: {

View File

@@ -81,7 +81,7 @@ class GameDemoState extends State<GameDemo> {
int _lastScore = 0;
Widget build(BuildContext context) {
return new App(
return new MaterialApp(
title: 'Asteroids',
theme: _theme,
routes: {

View File

@@ -32,7 +32,7 @@ main() async {
runApp(_app);
}
class TestBedApp extends App {
class TestBedApp extends MaterialApp {
Widget build() {
ThemeData theme = new ThemeData(

View File

@@ -32,7 +32,7 @@ main() async {
String json = await _bundle.loadString('assets/sprites.json');
_spriteSheet = new SpriteSheet(_images['assets/sprites.png'], json);
runApp(new App(
runApp(new MaterialApp(
title: 'Test drawAtlas',
theme: _theme,
routes: {

View File

@@ -33,7 +33,7 @@ main() async {
String json = await _bundle.loadString('assets/sprites.json');
_spriteSheet = new SpriteSheet(_images['assets/sprites.png'], json);
runApp(new App(
runApp(new MaterialApp(
title: 'Test Sprite Performance',
theme: _theme,
routes: {

View File

@@ -27,7 +27,7 @@ main() async {
String json = await _bundle.loadString('assets/sprites.json');
_spriteSheet = new SpriteSheet(_images['assets/sprites.png'], json);
runApp(new App(
runApp(new MaterialApp(
title: 'Test Physics',
theme: new ThemeData(
brightness: ThemeBrightness.light,