Skip to content

Commit cd9ad29

Browse files
sprobst76claude
andcommitted
Fix analyzer warnings
- Remove unused dart:math import in elevation_profile_chart.dart - Remove dead null-aware operators (description, power are non-null) - Add @OverRide annotations to DAO getters in AppDatabase - Add path package as explicit dependency 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 267c0e9 commit cd9ad29

File tree

6 files changed

+8
-4
lines changed

6 files changed

+8
-4
lines changed

lib/core/database/app_database.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,13 @@ class AppDatabase extends _$AppDatabase {
3939
AppDatabase.forTesting(super.e);
4040

4141
// DAO Getter
42+
@override
4243
SessionDao get sessionDao => SessionDao(this);
44+
@override
4345
WorkoutDao get workoutDao => WorkoutDao(this);
46+
@override
4447
GpxRouteDao get gpxRouteDao => GpxRouteDao(this);
48+
@override
4549
PersonalRecordDao get personalRecordDao => PersonalRecordDao(this);
4650

4751
@override

lib/features/comeback/presentation/pages/comeback_setup_page.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ class _ActiveComebackView extends ConsumerWidget {
376376
leading: const Icon(Icons.fitness_center,
377377
color: AppColors.primary),
378378
title: Text(workout.name),
379-
subtitle: Text(workout.description ?? ''),
379+
subtitle: Text(workout.description),
380380
trailing: Text(
381381
'${workout.totalDuration.inMinutes} min',
382382
style: const TextStyle(

lib/features/routes/presentation/pages/route_player_page.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ class _LiveDataBar extends ConsumerWidget {
393393
children: [
394394
_LiveStat(
395395
label: 'Power',
396-
value: '${liveData.power ?? 0}',
396+
value: '${liveData.power}',
397397
unit: 'W',
398398
targetValue: playerData.currentTargetPower,
399399
),

lib/features/routes/presentation/widgets/elevation_profile_chart.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import 'dart:math' as math;
21
import 'package:flutter/material.dart';
32

43
import '../../../../core/theme/app_theme.dart';

pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ packages:
665665
source: hosted
666666
version: "2.2.0"
667667
path:
668-
dependency: transitive
668+
dependency: "direct main"
669669
description:
670670
name: path
671671
sha256: "75cca69d1490965be98c73ceaea117e8a04dd21217b37b292c9ddbec0d955bc5"

pubspec.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ dependencies:
4949
url_launcher: ^6.2.5
5050

5151
# Utils
52+
path: ^1.9.0
5253
collection: ^1.18.0
5354
intl: ^0.19.0
5455
logger: ^2.3.0

0 commit comments

Comments
 (0)