1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-09 06:18:49 +00:00

web/chart: fix sample (#909)

This commit is contained in:
Brett Morgan
2021-10-07 08:10:34 +11:00
committed by GitHub
parent 0fe216a1cf
commit 2d9ba2f9eb
118 changed files with 3655 additions and 3511 deletions

View File

@@ -19,10 +19,10 @@ import 'home.dart';
/// The main gallery app widget.
class GalleryApp extends StatefulWidget {
GalleryApp({Key key}) : super(key: key);
const GalleryApp({Key key}) : super(key: key);
@override
GalleryAppState createState() => new GalleryAppState();
GalleryAppState createState() => GalleryAppState();
}
/// The main gallery app state.
@@ -34,11 +34,11 @@ class GalleryAppState extends State<GalleryApp> {
@override
Widget build(BuildContext context) {
return new MaterialApp(
return MaterialApp(
title: defaultConfig.appName,
theme: defaultConfig.theme,
showPerformanceOverlay: _showPerformanceOverlay,
home: new Home(
home: Home(
showPerformanceOverlay: _showPerformanceOverlay,
onShowPerformanceOverlayChanged: (bool value) {
setState(() {
@@ -50,5 +50,5 @@ class GalleryAppState extends State<GalleryApp> {
}
void main() {
runApp(new GalleryApp());
runApp(const GalleryApp());
}