mirror of
https://github.com/flutter/samples.git
synced 2026-06-06 06:19:19 +00:00
web/chart: fix sample (#909)
This commit is contained in:
@@ -26,55 +26,55 @@ import 'simple_series_legend.dart';
|
||||
|
||||
List<GalleryScaffold> buildGallery() {
|
||||
return [
|
||||
new GalleryScaffold(
|
||||
listTileIcon: new Icon(Icons.insert_chart),
|
||||
GalleryScaffold(
|
||||
listTileIcon: const Icon(Icons.insert_chart),
|
||||
title: 'Series Legend',
|
||||
subtitle: 'A series legend for a bar chart with default settings',
|
||||
childBuilder: () => new SimpleSeriesLegend.withRandomData(),
|
||||
childBuilder: () => SimpleSeriesLegend.withRandomData(),
|
||||
),
|
||||
new GalleryScaffold(
|
||||
listTileIcon: new Icon(Icons.insert_chart),
|
||||
GalleryScaffold(
|
||||
listTileIcon: const Icon(Icons.insert_chart),
|
||||
title: 'Series Legend Options',
|
||||
subtitle:
|
||||
'A series legend with custom positioning and spacing for a bar chart',
|
||||
childBuilder: () => new LegendOptions.withRandomData(),
|
||||
childBuilder: () => LegendOptions.withRandomData(),
|
||||
),
|
||||
new GalleryScaffold(
|
||||
listTileIcon: new Icon(Icons.insert_chart),
|
||||
GalleryScaffold(
|
||||
listTileIcon: const Icon(Icons.insert_chart),
|
||||
title: 'Series Legend Custom Symbol',
|
||||
subtitle: 'A series legend using a custom symbol renderer',
|
||||
childBuilder: () => new LegendWithCustomSymbol.withRandomData(),
|
||||
childBuilder: () => LegendWithCustomSymbol.withRandomData(),
|
||||
),
|
||||
new GalleryScaffold(
|
||||
listTileIcon: new Icon(Icons.insert_chart),
|
||||
GalleryScaffold(
|
||||
listTileIcon: const Icon(Icons.insert_chart),
|
||||
title: 'Default Hidden Series Legend',
|
||||
subtitle: 'A series legend showing a series hidden by default',
|
||||
childBuilder: () => new DefaultHiddenSeriesLegend.withRandomData(),
|
||||
childBuilder: () => DefaultHiddenSeriesLegend.withRandomData(),
|
||||
),
|
||||
new GalleryScaffold(
|
||||
listTileIcon: new Icon(Icons.insert_chart),
|
||||
GalleryScaffold(
|
||||
listTileIcon: const Icon(Icons.insert_chart),
|
||||
title: 'Series legend with measures',
|
||||
subtitle: 'Series legend with measures and measure formatting',
|
||||
childBuilder: () => new LegendWithMeasures.withRandomData(),
|
||||
childBuilder: () => LegendWithMeasures.withRandomData(),
|
||||
),
|
||||
new GalleryScaffold(
|
||||
listTileIcon: new Icon(Icons.pie_chart),
|
||||
GalleryScaffold(
|
||||
listTileIcon: const Icon(Icons.pie_chart),
|
||||
title: 'Datum Legend',
|
||||
subtitle: 'A datum legend for a pie chart with default settings',
|
||||
childBuilder: () => new SimpleDatumLegend.withRandomData(),
|
||||
childBuilder: () => SimpleDatumLegend.withRandomData(),
|
||||
),
|
||||
new GalleryScaffold(
|
||||
listTileIcon: new Icon(Icons.pie_chart),
|
||||
GalleryScaffold(
|
||||
listTileIcon: const Icon(Icons.pie_chart),
|
||||
title: 'Datum Legend Options',
|
||||
subtitle:
|
||||
'A datum legend with custom positioning and spacing for a pie chart',
|
||||
childBuilder: () => new DatumLegendOptions.withRandomData(),
|
||||
childBuilder: () => DatumLegendOptions.withRandomData(),
|
||||
),
|
||||
new GalleryScaffold(
|
||||
listTileIcon: new Icon(Icons.pie_chart),
|
||||
GalleryScaffold(
|
||||
listTileIcon: const Icon(Icons.pie_chart),
|
||||
title: 'Datum legend with measures',
|
||||
subtitle: 'Datum legend with measures and measure formatting',
|
||||
childBuilder: () => new DatumLegendWithMeasures.withRandomData(),
|
||||
childBuilder: () => DatumLegendWithMeasures.withRandomData(),
|
||||
),
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user