major refactor
All checks were successful
Release / meta (push) Successful in 7s
Release / linux-build (push) Successful in 6m36s
Release / android-build (push) Successful in 15m50s
Release / release-master (push) Successful in 23s
Release / release-dev (push) Successful in 25s

This commit is contained in:
2025-12-16 16:49:39 +00:00
parent 4a6aee8a15
commit 80be797322
23 changed files with 1517 additions and 1414 deletions

View File

@@ -1,10 +1,10 @@
import 'package:flutter/material.dart';
import 'package:go_router/go_router.dart';
import 'package:mileograph_flutter/components/dashboard/leaderboardPanel.dart';
import 'package:mileograph_flutter/components/dashboard/topTractionPanel.dart';
import 'package:mileograph_flutter/components/dashboard/leaderboard_panel.dart';
import 'package:mileograph_flutter/components/dashboard/top_traction_panel.dart';
import 'package:mileograph_flutter/objects/objects.dart';
import 'package:mileograph_flutter/services/authservice.dart';
import 'package:mileograph_flutter/services/dataService.dart';
import 'package:mileograph_flutter/services/data_service.dart';
import 'package:provider/provider.dart';
class Dashboard extends StatefulWidget {
@@ -78,7 +78,7 @@ class _DashboardState extends State<Dashboard> {
child: Container(
color: Theme.of(
context,
).colorScheme.surface.withOpacity(0.7),
).colorScheme.surface.withValues(alpha: 0.7),
child: const Center(
child: Column(
mainAxisSize: MainAxisSize.min,
@@ -105,7 +105,7 @@ class _DashboardState extends State<Dashboard> {
bool loading,
) {
final greetingName =
stats?.user?.full_name ?? auth.fullName ?? auth.username ?? 'there';
stats?.user?.fullName ?? auth.fullName ?? auth.username ?? 'there';
return Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
crossAxisAlignment: CrossAxisAlignment.start,
@@ -154,7 +154,7 @@ class _DashboardState extends State<Dashboard> {
label.toUpperCase(),
style: textTheme.labelSmall?.copyWith(
letterSpacing: 0.7,
color: textTheme.bodySmall?.color?.withOpacity(0.7),
color: textTheme.bodySmall?.color?.withValues(alpha: 0.7),
),
),
const SizedBox(height: 4),