Updated comments
This commit is contained in:
@@ -316,6 +316,7 @@ class _ActiveGameViewState extends State<ActiveGameView> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Shows a dialog to confirm deleting the game session.
|
||||||
Future<bool> _showDeleteGameDialog() async {
|
Future<bool> _showDeleteGameDialog() async {
|
||||||
return await showCupertinoDialog<bool>(
|
return await showCupertinoDialog<bool>(
|
||||||
context: context,
|
context: context,
|
||||||
@@ -348,6 +349,8 @@ class _ActiveGameViewState extends State<ActiveGameView> {
|
|||||||
false;
|
false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Removes the game session in the game manager and navigates back to the previous screen.
|
||||||
|
/// If the game session does not exist in the game list, it shows an error dialog.
|
||||||
Future<void> _removeGameSession(GameSession gameSession) async {
|
Future<void> _removeGameSession(GameSession gameSession) async {
|
||||||
if (gameManager.gameExistsInGameList(gameSession.id)) {
|
if (gameManager.gameExistsInGameList(gameSession.id)) {
|
||||||
Navigator.pop(context);
|
Navigator.pop(context);
|
||||||
|
|||||||
Reference in New Issue
Block a user