1
0
mirror of https://github.com/flutter/samples.git synced 2026-04-29 19:16:54 +00:00

Remove unneeded types (#949)

This commit is contained in:
Ahmed Ashour
2021-11-03 17:58:12 +01:00
committed by GitHub
parent 64805fe5b6
commit 29339b8334
30 changed files with 54 additions and 55 deletions

View File

@@ -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: ''),

View File

@@ -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',