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:
@@ -20,7 +20,7 @@ class GalleryDrawer extends StatelessWidget {
|
||||
final bool showPerformanceOverlay;
|
||||
final ValueChanged<bool> onShowPerformanceOverlayChanged;
|
||||
|
||||
GalleryDrawer(
|
||||
const GalleryDrawer(
|
||||
{Key key,
|
||||
this.showPerformanceOverlay,
|
||||
this.onShowPerformanceOverlayChanged})
|
||||
@@ -28,17 +28,17 @@ class GalleryDrawer extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return new Drawer(
|
||||
child: new ListView(children: <Widget>[
|
||||
return Drawer(
|
||||
child: ListView(children: <Widget>[
|
||||
// Performance overlay toggle.
|
||||
new ListTile(
|
||||
leading: new Icon(Icons.assessment),
|
||||
title: new Text('Performance Overlay'),
|
||||
ListTile(
|
||||
leading: const Icon(Icons.assessment),
|
||||
title: const Text('Performance Overlay'),
|
||||
onTap: () {
|
||||
onShowPerformanceOverlayChanged(!showPerformanceOverlay);
|
||||
},
|
||||
selected: showPerformanceOverlay,
|
||||
trailing: new Checkbox(
|
||||
trailing: Checkbox(
|
||||
value: showPerformanceOverlay,
|
||||
onChanged: (bool value) {
|
||||
onShowPerformanceOverlayChanged(!showPerformanceOverlay);
|
||||
|
||||
Reference in New Issue
Block a user