Renamed MatchProfileView to MatchDetailView
This commit is contained in:
@@ -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;
|
||||
@@ -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,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user