Renames Weather demo
This commit is contained in:
parent
932b09c33a
commit
2d76b2f88b
@ -17,12 +17,12 @@ enum WeatherType {
|
|||||||
snow
|
snow
|
||||||
}
|
}
|
||||||
|
|
||||||
class WeathersDemo extends StatefulComponent {
|
class WeatherDemo extends StatefulComponent {
|
||||||
WeathersDemo({ Key key }) : super(key: key);
|
WeatherDemo({ Key key }) : super(key: key);
|
||||||
_WeathersDemoState createState() => new _WeathersDemoState();
|
_WeatherDemoState createState() => new _WeatherDemoState();
|
||||||
}
|
}
|
||||||
|
|
||||||
class _WeathersDemoState extends State<WeathersDemo> {
|
class _WeatherDemoState extends State<WeatherDemo> {
|
||||||
|
|
||||||
Future _loadAssets(AssetBundle bundle) async {
|
Future _loadAssets(AssetBundle bundle) async {
|
||||||
_images = new ImageMap(bundle);
|
_images = new ImageMap(bundle);
|
||||||
@ -62,7 +62,7 @@ class _WeathersDemoState extends State<WeathersDemo> {
|
|||||||
if (!assetsLoaded) {
|
if (!assetsLoaded) {
|
||||||
return new Scaffold(
|
return new Scaffold(
|
||||||
toolBar: new ToolBar(
|
toolBar: new ToolBar(
|
||||||
center: new Text("Weathers")
|
center: new Text("Weather")
|
||||||
),
|
),
|
||||||
body: new Container(
|
body: new Container(
|
||||||
decoration: new BoxDecoration(
|
decoration: new BoxDecoration(
|
||||||
@ -74,7 +74,7 @@ class _WeathersDemoState extends State<WeathersDemo> {
|
|||||||
|
|
||||||
return new Scaffold(
|
return new Scaffold(
|
||||||
toolBar: new ToolBar(
|
toolBar: new ToolBar(
|
||||||
center: new Text("Weathers")
|
center: new Text("Weather")
|
||||||
),
|
),
|
||||||
body: new Material(
|
body: new Material(
|
||||||
child: new Stack(
|
child: new Stack(
|
@ -35,7 +35,7 @@ import '../demo/time_picker_demo.dart';
|
|||||||
import '../demo/tooltip_demo.dart';
|
import '../demo/tooltip_demo.dart';
|
||||||
import '../demo/two_level_list_demo.dart';
|
import '../demo/two_level_list_demo.dart';
|
||||||
import '../demo/typography_demo.dart';
|
import '../demo/typography_demo.dart';
|
||||||
import '../demo/weathers_demo.dart';
|
import '../demo/weather_demo.dart';
|
||||||
|
|
||||||
class GalleryHome extends StatefulComponent {
|
class GalleryHome extends StatefulComponent {
|
||||||
GalleryHome({ Key key }) : super(key: key);
|
GalleryHome({ Key key }) : super(key: key);
|
||||||
@ -70,7 +70,7 @@ class GalleryHomeState extends State<GalleryHome> {
|
|||||||
image: 'assets/section_animation.png',
|
image: 'assets/section_animation.png',
|
||||||
colors: Colors.purple,
|
colors: Colors.purple,
|
||||||
demos: <GalleryDemo>[
|
demos: <GalleryDemo>[
|
||||||
new GalleryDemo(title: 'Weathers', builder: () => new WeathersDemo()),
|
new GalleryDemo(title: 'Weather', builder: () => new WeatherDemo()),
|
||||||
new GalleryDemo(title: 'Fitness', builder: () => new FitnessDemo())
|
new GalleryDemo(title: 'Fitness', builder: () => new FitnessDemo())
|
||||||
]
|
]
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user