Compare commits
2 Commits
f00aa15518
...
9a5929382b
| Author | SHA1 | Date | |
|---|---|---|---|
| 9a5929382b | |||
| cca09cc27e |
@@ -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;
|
||||
@@ -233,7 +233,7 @@ class _MatchProfileViewState extends State<MatchProfileView> {
|
||||
const SizedBox(width: 15),
|
||||
MainMenuButton(
|
||||
text: loc.enter_results,
|
||||
icon: Icons.note_add,
|
||||
icon: Icons.emoji_events,
|
||||
onPressed: () async {
|
||||
currentWinner = await Navigator.push(
|
||||
context,
|
||||
@@ -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,
|
||||
),
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
name: game_tracker
|
||||
description: "Game Tracking App for Card Games"
|
||||
publish_to: 'none'
|
||||
version: 0.0.9+242
|
||||
version: 0.0.9+243
|
||||
|
||||
environment:
|
||||
sdk: ^3.8.1
|
||||
|
||||
Reference in New Issue
Block a user