Rename App to MaterialApp MaterialApp assumes that you're using material design. Also move radial reaction and fix imports for stats box.
diff --git a/examples/address_book/lib/main.dart b/examples/address_book/lib/main.dart index fb10ecc..dee2b76 100644 --- a/examples/address_book/lib/main.dart +++ b/examples/address_book/lib/main.dart
@@ -94,7 +94,7 @@ ); void main() { - runApp(new App( + runApp(new MaterialApp( title: 'Address Book', theme: theme, routes: <String, RouteBuilder>{
diff --git a/examples/demo_launcher/lib/main.dart b/examples/demo_launcher/lib/main.dart index dd4bf62..a95c24e 100644 --- a/examples/demo_launcher/lib/main.dart +++ b/examples/demo_launcher/lib/main.dart
@@ -201,7 +201,7 @@ } void main() { - runApp(new App( + runApp(new MaterialApp( title: 'Flutter Demos', theme: _theme, routes: {
diff --git a/examples/fitness/lib/main.dart b/examples/fitness/lib/main.dart index c747be6..453648b 100644 --- a/examples/fitness/lib/main.dart +++ b/examples/fitness/lib/main.dart
@@ -125,7 +125,7 @@ } Widget build(BuildContext) { - return new App( + return new MaterialApp( theme: new ThemeData( brightness: ThemeBrightness.light, primarySwatch: Colors.indigo,
diff --git a/examples/game/example_effect_line.dart b/examples/game/example_effect_line.dart index 05323d0..6d05848 100644 --- a/examples/game/example_effect_line.dart +++ b/examples/game/example_effect_line.dart
@@ -53,7 +53,7 @@ ]; Widget build(BuildContext context) { - return new App( + return new MaterialApp( title: 'EffectLine Demo', theme: _theme, routes: {
diff --git a/examples/game/lib/main.dart b/examples/game/lib/main.dart index 9150ab9..098f3eb 100644 --- a/examples/game/lib/main.dart +++ b/examples/game/lib/main.dart
@@ -81,7 +81,7 @@ int _lastScore = 0; Widget build(BuildContext context) { - return new App( + return new MaterialApp( title: 'Asteroids', theme: _theme, routes: {
diff --git a/examples/game/test_bed.dart b/examples/game/test_bed.dart index 653a566..b2dc7fb 100644 --- a/examples/game/test_bed.dart +++ b/examples/game/test_bed.dart
@@ -32,7 +32,7 @@ runApp(_app); } -class TestBedApp extends App { +class TestBedApp extends MaterialApp { Widget build() { ThemeData theme = new ThemeData(
diff --git a/examples/game/test_drawatlas.dart b/examples/game/test_drawatlas.dart index dba1748..edf568e 100644 --- a/examples/game/test_drawatlas.dart +++ b/examples/game/test_drawatlas.dart
@@ -32,7 +32,7 @@ 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: {
diff --git a/examples/game/test_performance.dart b/examples/game/test_performance.dart index 5ceab23..44d363c 100644 --- a/examples/game/test_performance.dart +++ b/examples/game/test_performance.dart
@@ -33,7 +33,7 @@ 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: {
diff --git a/examples/game/test_physics.dart b/examples/game/test_physics.dart index 137a325..4c2ecc1 100644 --- a/examples/game/test_physics.dart +++ b/examples/game/test_physics.dart
@@ -27,7 +27,7 @@ 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,
diff --git a/examples/stocks/lib/main.dart b/examples/stocks/lib/main.dart index 1a46790..f791c55 100644 --- a/examples/stocks/lib/main.dart +++ b/examples/stocks/lib/main.dart
@@ -87,7 +87,7 @@ } Widget build(BuildContext context) { - return new App( + return new MaterialApp( title: 'Stocks', theme: theme, routes: <String, RouteBuilder>{
diff --git a/examples/widgets/card_collection.dart b/examples/widgets/card_collection.dart index 7896c68..0293a73 100644 --- a/examples/widgets/card_collection.dart +++ b/examples/widgets/card_collection.dart
@@ -372,7 +372,7 @@ } void main() { - runApp(new App( + runApp(new MaterialApp( title: 'Cards', routes: { '/': (RouteArguments args) => new CardCollection(navigator: args.navigator),
diff --git a/examples/widgets/drag_and_drop.dart b/examples/widgets/drag_and_drop.dart index a7c5ff6..7de9a6b 100644 --- a/examples/widgets/drag_and_drop.dart +++ b/examples/widgets/drag_and_drop.dart
@@ -129,7 +129,7 @@ } void main() { - runApp(new App( + runApp(new MaterialApp( title: 'Drag and Drop Flutter Demo', routes: { '/': (RouteArguments args) => new DragAndDropApp(navigator: args.navigator)
diff --git a/examples/widgets/ensure_visible.dart b/examples/widgets/ensure_visible.dart index d59e0d6..fe570fd 100644 --- a/examples/widgets/ensure_visible.dart +++ b/examples/widgets/ensure_visible.dart
@@ -13,7 +13,7 @@ Key get key => new ObjectKey(this); } -class EnsureVisibleApp extends App { +class EnsureVisibleApp extends MaterialApp { static const TextStyle cardLabelStyle = const TextStyle(color: Colors.white, fontSize: 18.0, fontWeight: bold);
diff --git a/examples/widgets/indexed_stack.dart b/examples/widgets/indexed_stack.dart index e7a5e49..5f23624 100644 --- a/examples/widgets/indexed_stack.dart +++ b/examples/widgets/indexed_stack.dart
@@ -56,7 +56,7 @@ } void main() { - runApp(new App( + runApp(new MaterialApp( title: 'IndexedStackDemo', theme: new ThemeData( brightness: ThemeBrightness.light,
diff --git a/examples/widgets/navigation.dart b/examples/widgets/navigation.dart index 1e76049..9624c20 100644 --- a/examples/widgets/navigation.dart +++ b/examples/widgets/navigation.dart
@@ -57,7 +57,7 @@ ); void main() { - runApp(new App( + runApp(new MaterialApp( title: 'Navigation Example', theme: theme, routes: routes
diff --git a/examples/widgets/overlay_geometry.dart b/examples/widgets/overlay_geometry.dart index 34be772..bc55caf 100644 --- a/examples/widgets/overlay_geometry.dart +++ b/examples/widgets/overlay_geometry.dart
@@ -156,7 +156,7 @@ } void main() { - runApp(new App( + runApp(new MaterialApp( theme: new ThemeData( brightness: ThemeBrightness.light, primarySwatch: Colors.blue,
diff --git a/examples/widgets/pageable_list.dart b/examples/widgets/pageable_list.dart index f51083e..05d216d 100644 --- a/examples/widgets/pageable_list.dart +++ b/examples/widgets/pageable_list.dart
@@ -156,7 +156,7 @@ } void main() { - runApp(new App( + runApp(new MaterialApp( title: 'PageableList', theme: new ThemeData( brightness: ThemeBrightness.light,
diff --git a/examples/widgets/sector.dart b/examples/widgets/sector.dart index c87d87c..d6253c2 100644 --- a/examples/widgets/sector.dart +++ b/examples/widgets/sector.dart
@@ -16,7 +16,7 @@ ); } -class SectorApp extends App { +class SectorApp extends MaterialApp { RenderBoxToRenderSectorAdapter sectors = initCircle(); math.Random rand = new math.Random(1);