a-mabe / a-mabe/OpenHIIT

[Feature/Improvement] Prompt for confirmation when exiting a timer

Offen
#118 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
enhancement good first issue help wanted
Vorherrschende Sprache
Dart
Sterne
114
Forks
24
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

**Purpose:** As a user, I would like to be prompted for confirmation when hitting the back button to leave a running timer.

**More details:**

Shown in the screenshot below is the back button on the workout screen.

![Screenshot 2023-12-21 at 4 35 38 PM](https://github.com/a-mabe/OpenHIIT/assets/39250511/6e002d86-a8ce-4f38-9764-2c2743d29466)

Currently when the user taps this button, the workout is immediately cancelled and the user is sent back to the previous page. Tapping this button could happen by mistake and the user does not want to cancel the workout. There should be an [AlertDialog](https://api.flutter.dev/flutter/material/AlertDialog-class.html) that appears when the user taps the back button, asking them if they are sure they would like to exit the workout.

The dialog should read:

**Exit Workout**

Are you sure you would like to exit the current workout?

..............................Return to workout ......... Exit workout

AlertDialog implementation will be similar to the one in #107

**Acceptance Criteria:**
- [AlertDialog](https://api.flutter.dev/flutter/material/AlertDialog-class.html) implemented and appears on back button press on the workout screen.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.