WIP: Bearbeiten und Löschen von Matches #171

Draft
flixcoo wants to merge 35 commits from feature/120-bearbeiten-und-loeschen-von-matches into development
2 changed files with 6 additions and 6 deletions
Showing only changes of commit cca09cc27e - Show all commits

View File

@@ -16,11 +16,11 @@ import 'package:game_tracker/presentation/widgets/tiles/text_icon_tile.dart';
import 'package:intl/intl.dart';
import 'package:provider/provider.dart';
class MatchProfileView extends StatefulWidget {
class MatchDetailView extends StatefulWidget {
/// A view that displays the profile of a match
/// - [match]: The match to display
/// - [callback]: Callback to refresh the match list
const MatchProfileView({
const MatchDetailView({
super.key,
required this.match,
required this.callback,
@@ -33,10 +33,10 @@ class MatchProfileView extends StatefulWidget {
final VoidCallback callback;
@override
State<MatchProfileView> createState() => _MatchProfileViewState();
State<MatchDetailView> createState() => _MatchDetailViewState();
}
class _MatchProfileViewState extends State<MatchProfileView> {
class _MatchDetailViewState extends State<MatchDetailView> {
late final AppDatabase db;
late Player? currentWinner;

View File

@@ -11,7 +11,7 @@ import 'package:game_tracker/data/dto/match.dart';
import 'package:game_tracker/data/dto/player.dart';
import 'package:game_tracker/l10n/generated/app_localizations.dart';
import 'package:game_tracker/presentation/views/main_menu/match_view/create_match/create_match_view.dart';
import 'package:game_tracker/presentation/views/main_menu/match_view/match_profile_view.dart';
import 'package:game_tracker/presentation/views/main_menu/match_view/match_detail_view.dart';
import 'package:game_tracker/presentation/widgets/app_skeleton.dart';
import 'package:game_tracker/presentation/widgets/buttons/main_menu_button.dart';
import 'package:game_tracker/presentation/widgets/tiles/match_tile.dart';
@@ -89,7 +89,7 @@ class _MatchViewState extends State<MatchView> {
Navigator.push(
context,
adaptivePageRoute(
builder: (context) => MatchProfileView(
builder: (context) => MatchDetailView(
match: matches[index],
callback: loadGames,
),