From 2d76b2f88bd9f3c95da62fc183a9f03ba02ee554 Mon Sep 17 00:00:00 2001 From: Viktor Lidholt Date: Thu, 3 Mar 2016 13:17:24 -0800 Subject: [PATCH] Renames Weather demo --- .../demo/{weathers_demo.dart => weather_demo.dart} | 12 ++++++------ examples/material_gallery/lib/gallery/home.dart | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) rename examples/material_gallery/lib/demo/{weathers_demo.dart => weather_demo.dart} (97%) diff --git a/examples/material_gallery/lib/demo/weathers_demo.dart b/examples/material_gallery/lib/demo/weather_demo.dart similarity index 97% rename from examples/material_gallery/lib/demo/weathers_demo.dart rename to examples/material_gallery/lib/demo/weather_demo.dart index 942255ed78..c8ddcfdcf5 100644 --- a/examples/material_gallery/lib/demo/weathers_demo.dart +++ b/examples/material_gallery/lib/demo/weather_demo.dart @@ -17,12 +17,12 @@ enum WeatherType { snow } -class WeathersDemo extends StatefulComponent { - WeathersDemo({ Key key }) : super(key: key); - _WeathersDemoState createState() => new _WeathersDemoState(); +class WeatherDemo extends StatefulComponent { + WeatherDemo({ Key key }) : super(key: key); + _WeatherDemoState createState() => new _WeatherDemoState(); } -class _WeathersDemoState extends State { +class _WeatherDemoState extends State { Future _loadAssets(AssetBundle bundle) async { _images = new ImageMap(bundle); @@ -62,7 +62,7 @@ class _WeathersDemoState extends State { if (!assetsLoaded) { return new Scaffold( toolBar: new ToolBar( - center: new Text("Weathers") + center: new Text("Weather") ), body: new Container( decoration: new BoxDecoration( @@ -74,7 +74,7 @@ class _WeathersDemoState extends State { return new Scaffold( toolBar: new ToolBar( - center: new Text("Weathers") + center: new Text("Weather") ), body: new Material( child: new Stack( diff --git a/examples/material_gallery/lib/gallery/home.dart b/examples/material_gallery/lib/gallery/home.dart index 9597e60d37..f4ec62ba4c 100644 --- a/examples/material_gallery/lib/gallery/home.dart +++ b/examples/material_gallery/lib/gallery/home.dart @@ -35,7 +35,7 @@ import '../demo/time_picker_demo.dart'; import '../demo/tooltip_demo.dart'; import '../demo/two_level_list_demo.dart'; import '../demo/typography_demo.dart'; -import '../demo/weathers_demo.dart'; +import '../demo/weather_demo.dart'; class GalleryHome extends StatefulComponent { GalleryHome({ Key key }) : super(key: key); @@ -70,7 +70,7 @@ class GalleryHomeState extends State { image: 'assets/section_animation.png', colors: Colors.purple, demos: [ - new GalleryDemo(title: 'Weathers', builder: () => new WeathersDemo()), + new GalleryDemo(title: 'Weather', builder: () => new WeatherDemo()), new GalleryDemo(title: 'Fitness', builder: () => new FitnessDemo()) ] ),