fixing linter warnings and hints
parent
11d4e74077
commit
0c6d1ffcc2
|
@ -6,7 +6,7 @@ import 'utils/my_theme.dart';
|
|||
|
||||
Future<void> main() async {
|
||||
await setup();
|
||||
runApp(MyApp());
|
||||
runApp(const MyApp());
|
||||
}
|
||||
|
||||
class MyApp extends StatelessWidget {
|
||||
|
|
|
@ -12,7 +12,7 @@ import '/utils/my_color.dart';
|
|||
import 'onboarding_standalone_credentials_screen.dart';
|
||||
|
||||
class OnboardingCreateUserScreen extends StatefulWidget {
|
||||
const OnboardingCreateUserScreen();
|
||||
const OnboardingCreateUserScreen({Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
_OnboardingCreateUserScreenState createState() =>
|
||||
|
|
|
@ -7,7 +7,7 @@ import 'introduction_text_screen.dart';
|
|||
import 'onboarding_create_user.dart';
|
||||
|
||||
class OnboardingIntroductionScreen extends StatelessWidget {
|
||||
const OnboardingIntroductionScreen();
|
||||
const OnboardingIntroductionScreen({Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
@ -44,7 +44,7 @@ class OnboardingIntroductionScreen extends StatelessWidget {
|
|||
context,
|
||||
MaterialPageRoute<BuildContext>(
|
||||
builder: (BuildContext _) =>
|
||||
IntroductionTextScreen(),
|
||||
const IntroductionTextScreen(),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
|
|
@ -12,14 +12,14 @@ import '/utils/my_button.dart';
|
|||
import 'pg_text.dart';
|
||||
|
||||
class AthleteTimeSeriesChart extends StatefulWidget {
|
||||
const AthleteTimeSeriesChart({
|
||||
const AthleteTimeSeriesChart({Key? key,
|
||||
required this.athlete,
|
||||
required this.activities,
|
||||
required this.activityAttr,
|
||||
required this.chartTitleText,
|
||||
this.fullDecay,
|
||||
this.flipVerticalAxis,
|
||||
});
|
||||
}) : super(key: key);
|
||||
|
||||
final Athlete? athlete;
|
||||
final List<Activity> activities;
|
||||
|
|
|
@ -13,10 +13,10 @@ import '/utils/my_button.dart';
|
|||
import '/widgets/charts/activity_charts/activity_ecor_chart.dart';
|
||||
|
||||
class ActivityEcorWidget extends StatefulWidget {
|
||||
const ActivityEcorWidget({
|
||||
const ActivityEcorWidget({Key? key,
|
||||
required this.activity,
|
||||
required this.athlete,
|
||||
});
|
||||
}) : super(key: key);
|
||||
|
||||
final Activity? activity;
|
||||
final Athlete? athlete;
|
||||
|
|
|
@ -11,10 +11,10 @@ import '/utils/icon_utils.dart';
|
|||
import '/utils/my_button.dart';
|
||||
|
||||
class ActivityEventListWidget extends StatefulWidget {
|
||||
const ActivityEventListWidget({
|
||||
const ActivityEventListWidget({Key? key,
|
||||
required this.activity,
|
||||
required this.athlete,
|
||||
});
|
||||
}) : super(key: key);
|
||||
|
||||
final Activity? activity;
|
||||
final Athlete? athlete;
|
||||
|
|
|
@ -12,10 +12,10 @@ import '/utils/my_button.dart';
|
|||
import '/widgets/charts/activity_charts/activity_ground_time_chart.dart';
|
||||
|
||||
class ActivityGroundTimeWidget extends StatefulWidget {
|
||||
const ActivityGroundTimeWidget({
|
||||
const ActivityGroundTimeWidget({Key? key,
|
||||
required this.activity,
|
||||
required this.athlete,
|
||||
});
|
||||
}) : super(key: key);
|
||||
|
||||
final Activity? activity;
|
||||
final Athlete? athlete;
|
||||
|
|
|
@ -6,10 +6,10 @@ import '/utils/pg_text.dart';
|
|||
import '/utils/enums.dart';
|
||||
|
||||
class ActivityMetadataWidget extends StatelessWidget {
|
||||
const ActivityMetadataWidget({
|
||||
const ActivityMetadataWidget({Key? key,
|
||||
required this.activity,
|
||||
required this.athlete,
|
||||
});
|
||||
}) : super(key: key);
|
||||
|
||||
final Activity? activity;
|
||||
final Athlete? athlete;
|
||||
|
|
|
@ -12,10 +12,10 @@ import '/utils/my_button.dart';
|
|||
import '/widgets/charts/activity_charts/activity_pace_chart.dart';
|
||||
|
||||
class ActivityPaceWidget extends StatefulWidget {
|
||||
const ActivityPaceWidget({
|
||||
const ActivityPaceWidget({Key? key,
|
||||
required this.activity,
|
||||
required this.athlete,
|
||||
});
|
||||
}) : super(key: key);
|
||||
|
||||
final Activity? activity;
|
||||
final Athlete? athlete;
|
||||
|
|
|
@ -12,10 +12,10 @@ import '/utils/my_button.dart';
|
|||
import '/widgets/charts/activity_charts/activity_power_per_heart_rate_chart.dart';
|
||||
|
||||
class ActivityPowerPerHeartRateWidget extends StatefulWidget {
|
||||
const ActivityPowerPerHeartRateWidget({
|
||||
const ActivityPowerPerHeartRateWidget({Key? key,
|
||||
required this.activity,
|
||||
required this.athlete,
|
||||
});
|
||||
}) : super(key: key);
|
||||
|
||||
final Activity? activity;
|
||||
final Athlete? athlete;
|
||||
|
|
|
@ -12,10 +12,10 @@ import '/utils/my_button.dart';
|
|||
import '/widgets/charts/activity_charts/activity_power_ratio_chart.dart';
|
||||
|
||||
class ActivityPowerRatioWidget extends StatefulWidget {
|
||||
const ActivityPowerRatioWidget({
|
||||
const ActivityPowerRatioWidget({Key? key,
|
||||
required this.activity,
|
||||
required this.athlete,
|
||||
});
|
||||
}) : super(key: key);
|
||||
|
||||
final Activity? activity;
|
||||
final Athlete? athlete;
|
||||
|
|
|
@ -12,10 +12,10 @@ import '/utils/my_button.dart';
|
|||
import '/widgets/charts/activity_charts/activity_speed_chart.dart';
|
||||
|
||||
class ActivitySpeedWidget extends StatefulWidget {
|
||||
const ActivitySpeedWidget({
|
||||
const ActivitySpeedWidget({Key? key,
|
||||
required this.activity,
|
||||
required this.athlete,
|
||||
});
|
||||
}) : super(key: key);
|
||||
|
||||
final Activity? activity;
|
||||
final Athlete? athlete;
|
||||
|
|
|
@ -12,10 +12,10 @@ import '/utils/my_button.dart';
|
|||
import '/widgets/charts/activity_charts/activity_stride_ratio_chart.dart';
|
||||
|
||||
class ActivityStrideRatioWidget extends StatefulWidget {
|
||||
const ActivityStrideRatioWidget({
|
||||
const ActivityStrideRatioWidget({Key? key,
|
||||
required this.activity,
|
||||
required this.athlete,
|
||||
});
|
||||
}) : super(key: key);
|
||||
|
||||
final Activity? activity;
|
||||
final Athlete? athlete;
|
||||
|
|
|
@ -12,10 +12,10 @@ import '/utils/my_button.dart';
|
|||
import '/widgets/charts/activity_charts/activity_vertical_oscillation_chart.dart';
|
||||
|
||||
class ActivityVerticalOscillationWidget extends StatefulWidget {
|
||||
const ActivityVerticalOscillationWidget({
|
||||
const ActivityVerticalOscillationWidget({Key? key,
|
||||
required this.activity,
|
||||
required this.athlete,
|
||||
});
|
||||
}) : super(key: key);
|
||||
|
||||
final Activity? activity;
|
||||
final Athlete? athlete;
|
||||
|
|
|
@ -10,7 +10,7 @@ import '/utils/image_utils.dart' as image_utils;
|
|||
import '/utils/my_button.dart';
|
||||
|
||||
class AthleteDistanceWidget extends StatefulWidget {
|
||||
const AthleteDistanceWidget({this.athlete});
|
||||
const AthleteDistanceWidget({Key? key, this.athlete}) : super(key: key);
|
||||
|
||||
final Athlete? athlete;
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ import '/utils/enums.dart';
|
|||
import 'athlete_filter_widget.dart';
|
||||
|
||||
class AthleteEcorWidget extends StatefulWidget {
|
||||
const AthleteEcorWidget({this.athlete});
|
||||
const AthleteEcorWidget({Key? key, this.athlete}) : super(key: key);
|
||||
|
||||
final Athlete? athlete;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import '/utils/my_button.dart';
|
|||
import 'athlete_filter_widget.dart';
|
||||
|
||||
class AthleteHeartRateWidget extends StatefulWidget {
|
||||
const AthleteHeartRateWidget({this.athlete});
|
||||
const AthleteHeartRateWidget({Key? key, this.athlete}) : super(key: key);
|
||||
|
||||
final Athlete? athlete;
|
||||
|
||||
|
|
|
@ -9,10 +9,10 @@ import '/utils/my_button.dart';
|
|||
import '/utils/my_button_style.dart';
|
||||
|
||||
class AthleteHeartRateZoneSchemaWidget extends StatefulWidget {
|
||||
const AthleteHeartRateZoneSchemaWidget({
|
||||
const AthleteHeartRateZoneSchemaWidget({Key? key,
|
||||
this.athlete,
|
||||
this.callBackFunction,
|
||||
});
|
||||
}) : super(key: key);
|
||||
|
||||
final Athlete? athlete;
|
||||
final Function? callBackFunction;
|
||||
|
|
|
@ -12,7 +12,7 @@ import '/utils/image_utils.dart' as image_utils;
|
|||
import '/utils/my_button.dart';
|
||||
|
||||
class AthletePaceVsDistanceWidget extends StatefulWidget {
|
||||
const AthletePaceVsDistanceWidget({this.athlete});
|
||||
const AthletePaceVsDistanceWidget({Key? key, this.athlete}) : super(key: key);
|
||||
|
||||
final Athlete? athlete;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import '/utils/my_button.dart';
|
|||
import 'athlete_filter_widget.dart';
|
||||
|
||||
class AthletePowerPerHeartRateWidget extends StatefulWidget {
|
||||
const AthletePowerPerHeartRateWidget({this.athlete});
|
||||
const AthletePowerPerHeartRateWidget({Key? key, this.athlete}) : super(key: key);
|
||||
|
||||
final Athlete? athlete;
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ import '/utils/image_utils.dart' as image_utils;
|
|||
import '/utils/my_button.dart';
|
||||
|
||||
class AthletePowerVsDistanceWidget extends StatefulWidget {
|
||||
const AthletePowerVsDistanceWidget({this.athlete});
|
||||
const AthletePowerVsDistanceWidget({Key? key, this.athlete}) : super(key: key);
|
||||
|
||||
final Athlete? athlete;
|
||||
|
||||
|
|
|
@ -9,10 +9,10 @@ import '/utils/my_button.dart';
|
|||
import '/utils/my_button_style.dart';
|
||||
|
||||
class AthletePowerZoneSchemaWidget extends StatefulWidget {
|
||||
const AthletePowerZoneSchemaWidget({
|
||||
const AthletePowerZoneSchemaWidget({Key? key,
|
||||
this.athlete,
|
||||
this.callBackFunction,
|
||||
});
|
||||
}) : super(key: key);
|
||||
|
||||
final Athlete? athlete;
|
||||
final Function? callBackFunction;
|
||||
|
|
|
@ -11,7 +11,7 @@ import '/utils/my_button.dart';
|
|||
import 'athlete_filter_widget.dart';
|
||||
|
||||
class AthleteStrideRatioWidget extends StatefulWidget {
|
||||
const AthleteStrideRatioWidget({this.athlete});
|
||||
const AthleteStrideRatioWidget({Key? key, this.athlete}) : super(key: key);
|
||||
|
||||
final Athlete? athlete;
|
||||
|
||||
|
|
|
@ -10,11 +10,11 @@ import '/utils/graph_utils.dart';
|
|||
import '/utils/my_button.dart';
|
||||
|
||||
class LapPaceChart extends StatefulWidget {
|
||||
const LapPaceChart({
|
||||
const LapPaceChart({Key? key,
|
||||
required this.records,
|
||||
required this.minimum,
|
||||
required this.maximum,
|
||||
});
|
||||
}) : super(key: key);
|
||||
|
||||
final RecordList<Event> records;
|
||||
final double minimum;
|
||||
|
|
|
@ -13,7 +13,7 @@ import '/utils/my_button.dart';
|
|||
import '/widgets/charts/lap_charts/lap_altitude_chart.dart';
|
||||
|
||||
class IntervalAltitudeWidget extends StatefulWidget {
|
||||
const IntervalAltitudeWidget({this.interval});
|
||||
const IntervalAltitudeWidget({Key? key, this.interval}) : super(key: key);
|
||||
|
||||
final encrateia.Interval? interval;
|
||||
|
||||
|
|
|
@ -13,10 +13,10 @@ import '/utils/my_button.dart';
|
|||
import '/widgets/charts/lap_charts/lap_ecor_chart.dart';
|
||||
|
||||
class IntervalEcorWidget extends StatefulWidget {
|
||||
const IntervalEcorWidget({
|
||||
const IntervalEcorWidget({Key? key,
|
||||
required this.interval,
|
||||
required this.athlete,
|
||||
});
|
||||
}) : super(key: key);
|
||||
|
||||
final encrateia.Interval? interval;
|
||||
final Athlete? athlete;
|
||||
|
|
|
@ -11,7 +11,7 @@ import '/utils/my_button.dart';
|
|||
import '/widgets/charts/lap_charts/lap_form_power_chart.dart';
|
||||
|
||||
class IntervalFormPowerWidget extends StatefulWidget {
|
||||
const IntervalFormPowerWidget({this.interval});
|
||||
const IntervalFormPowerWidget({Key? key, this.interval}) : super(key: key);
|
||||
|
||||
final encrateia.Interval? interval;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import '/utils/my_button.dart';
|
|||
import '/widgets/charts/lap_charts/lap_ground_time_chart.dart';
|
||||
|
||||
class IntervalGroundTimeWidget extends StatefulWidget {
|
||||
const IntervalGroundTimeWidget({this.interval});
|
||||
const IntervalGroundTimeWidget({Key? key, this.interval}) : super(key: key);
|
||||
|
||||
final encrateia.Interval? interval;
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ import '/utils/my_button.dart';
|
|||
import '/widgets/charts/lap_charts/lap_heart_rate_chart.dart';
|
||||
|
||||
class IntervalHeartRateWidget extends StatefulWidget {
|
||||
const IntervalHeartRateWidget({this.interval});
|
||||
const IntervalHeartRateWidget({Key? key, this.interval}) : super(key: key);
|
||||
|
||||
final encrateia.Interval? interval;
|
||||
|
||||
|
|
|
@ -7,10 +7,10 @@ import '/utils/pg_text.dart';
|
|||
import '/utils/enums.dart';
|
||||
|
||||
class IntervalOverviewWidget extends StatefulWidget {
|
||||
const IntervalOverviewWidget({
|
||||
const IntervalOverviewWidget({Key? key,
|
||||
this.interval,
|
||||
this.athlete,
|
||||
});
|
||||
}) : super(key: key);
|
||||
|
||||
final encrateia.Interval? interval;
|
||||
final Athlete? athlete;
|
||||
|
|
|
@ -11,7 +11,7 @@ import '/utils/my_button.dart';
|
|||
import '/widgets/charts/lap_charts/lap_pace_chart.dart';
|
||||
|
||||
class IntervalPaceWidget extends StatefulWidget {
|
||||
const IntervalPaceWidget({this.interval});
|
||||
const IntervalPaceWidget({Key? key, this.interval}) : super(key: key);
|
||||
|
||||
final encrateia.Interval? interval;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import '/utils/my_button.dart';
|
|||
import '/widgets/charts/lap_charts/lap_stryd_cadence_chart.dart';
|
||||
|
||||
class IntervalStrydCadenceWidget extends StatefulWidget {
|
||||
const IntervalStrydCadenceWidget({this.interval});
|
||||
const IntervalStrydCadenceWidget({Key? key, this.interval}) : super(key: key);
|
||||
|
||||
final encrateia.Interval? interval;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import '/utils/my_button.dart';
|
|||
import '/widgets/charts/lap_charts/lap_vertical_oscillation_chart.dart';
|
||||
|
||||
class IntervalVerticalOscillationWidget extends StatefulWidget {
|
||||
const IntervalVerticalOscillationWidget({this.interval});
|
||||
const IntervalVerticalOscillationWidget({Key? key, this.interval}) : super(key: key);
|
||||
|
||||
final encrateia.Interval? interval;
|
||||
|
||||
|
|
|
@ -10,10 +10,10 @@ import '/utils/enums.dart';
|
|||
import '/utils/my_button.dart';
|
||||
|
||||
class IntervalsListWidget extends StatefulWidget {
|
||||
const IntervalsListWidget({
|
||||
const IntervalsListWidget({Key? key,
|
||||
required this.activity,
|
||||
required this.athlete,
|
||||
});
|
||||
}) : super(key: key);
|
||||
|
||||
final Activity? activity;
|
||||
final Athlete? athlete;
|
||||
|
|
|
@ -5,7 +5,7 @@ import '/utils/pg_text.dart';
|
|||
import '/utils/enums.dart';
|
||||
|
||||
class LapMetadataWidget extends StatelessWidget {
|
||||
const LapMetadataWidget({this.lap});
|
||||
const LapMetadataWidget({Key? key, this.lap}) : super(key: key);
|
||||
|
||||
final Lap? lap;
|
||||
|
||||
|
|
Reference in New Issue