mirror of
https://github.com/flutter/samples.git
synced 2026-04-04 02:32:25 +00:00
Remove unneeded types (#949)
This commit is contained in:
@@ -153,7 +153,7 @@ class DisjointMeasureAxisLineChart extends StatelessWidget {
|
||||
primaryMeasureAxis: const charts.NumericAxisSpec(
|
||||
tickProviderSpec: charts.StaticNumericTickProviderSpec(
|
||||
// Create the ticks to be used the domain axis.
|
||||
<charts.TickSpec<num>>[
|
||||
[
|
||||
charts.TickSpec(0, label: ''),
|
||||
charts.TickSpec(1, label: ''),
|
||||
charts.TickSpec(2, label: ''),
|
||||
|
||||
@@ -81,7 +81,7 @@ class StaticallyProvidedTicks extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
// Create the ticks to be used the domain axis.
|
||||
final staticTicks = <charts.TickSpec<String>>[
|
||||
final staticTicks = [
|
||||
const charts.TickSpec(
|
||||
// Value must match the domain value.
|
||||
'2014',
|
||||
|
||||
@@ -29,7 +29,7 @@ class GalleryDrawer extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Drawer(
|
||||
child: ListView(children: <Widget>[
|
||||
child: ListView(children: [
|
||||
// Performance overlay toggle.
|
||||
ListTile(
|
||||
leading: const Icon(Icons.assessment),
|
||||
|
||||
@@ -57,7 +57,7 @@ class _GalleryScaffoldState extends State<GalleryScaffold> {
|
||||
appBar: AppBar(title: Text(widget.title)),
|
||||
body: Padding(
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
child: Column(children: <Widget>[
|
||||
child: Column(children: [
|
||||
SizedBox(height: 250.0, child: widget.childBuilder()),
|
||||
])),
|
||||
floatingActionButton: FloatingActionButton(
|
||||
|
||||
Reference in New Issue
Block a user