From 711e23a18a70f4fc410afedaf43d808d3af2602c Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Tue, 1 Jul 2025 23:05:36 +0200 Subject: [PATCH] Changed swipe to delete direction --- lib/views/main_menu_view.dart | 6 +++--- pubspec.yaml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/views/main_menu_view.dart b/lib/views/main_menu_view.dart index 2f5eee9..2c1dba2 100644 --- a/lib/views/main_menu_view.dart +++ b/lib/views/main_menu_view.dart @@ -114,15 +114,15 @@ class _MainMenuViewState extends State { key: Key(session.gameTitle), background: Container( color: CupertinoColors.destructiveRed, - alignment: Alignment.centerLeft, + alignment: Alignment.centerRight, padding: - const EdgeInsets.only(left: 20.0), + const EdgeInsets.only(right: 20.0), child: const Icon( CupertinoIcons.delete, color: CupertinoColors.white, ), ), - direction: DismissDirection.startToEnd, + direction: DismissDirection.endToStart, confirmDismiss: (direction) async { final String gameTitle = gameManager .gameList[index].gameTitle; diff --git a/pubspec.yaml b/pubspec.yaml index 39afb1b..af1107f 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -2,7 +2,7 @@ name: cabo_counter description: "Mobile app for the card game Cabo" publish_to: 'none' -version: 0.3.3+265 +version: 0.3.4+267 environment: sdk: ^3.5.4