mirror of
https://github.com/flutter/samples.git
synced 2025-11-09 14:28:51 +00:00
web/chart: fix sample (#909)
This commit is contained in:
@@ -53,7 +53,7 @@ class Home extends StatelessWidget {
|
||||
Home(
|
||||
{Key key,
|
||||
this.showPerformanceOverlay,
|
||||
this.onShowPerformanceOverlayChanged})
|
||||
@required this.onShowPerformanceOverlayChanged})
|
||||
: super(key: key) {
|
||||
assert(onShowPerformanceOverlayChanged != null);
|
||||
}
|
||||
@@ -106,12 +106,12 @@ class Home extends StatelessWidget {
|
||||
|
||||
_setupPerformance();
|
||||
|
||||
return new Scaffold(
|
||||
drawer: new GalleryDrawer(
|
||||
return Scaffold(
|
||||
drawer: GalleryDrawer(
|
||||
showPerformanceOverlay: showPerformanceOverlay,
|
||||
onShowPerformanceOverlayChanged: onShowPerformanceOverlayChanged),
|
||||
appBar: new AppBar(title: new Text(defaultConfig.appName)),
|
||||
body: new ListView(padding: kMaterialListPadding, children: galleries),
|
||||
appBar: AppBar(title: Text(defaultConfig.appName)),
|
||||
body: ListView(padding: kMaterialListPadding, children: galleries),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user