When the user selects a specific activity in the 'Ugeplan' user interface, it leads them to the 'Aktivitet' user interface, where there are two buttons: 'Afslut' and 'Aflys' (Figure a). If the user presses 'Afslut,' the 'Aflys' button becomes disabled (Figure b). Conversely, if the user presses 'Aflys,' the 'Afslut' button will be disabled (Figure c).
The problem is that the buttons' states aren't updated immediately. The Users have to reload the 'Aktivitet' user interface to see the changes take effect. For example, when the user selects the 'Afslut' button, the 'Aflys' button's state doesn't change right away (Figure d). To observe the correct state as shown in Figure e, the user needs to return to the 'Ugeplan' screen and then select the activity again. After reloading the 'Aktivitet' UI, if the user presses 'Fortryd' (as in Figure e), the 'Aflys' button still displays the incorrect state (Figure f) instead of the expected state (Figure g).
Fixes #\<948>
Possible suggested solution:
When one button is pressed, the other gray button becomes hidden, and if the user presses 'Fortryd,' both buttons reappear in their normal state (as shown in the figure below). This eliminates the need to reload the 'Aktivitet' user interface every time, ensuring that both buttons are always in a usable state.
Type of change
[x] Breaking change (fix or feature that would cause existing functionality to not work as expected)
How Has This Been Tested?
Android Platform: emulation is carried out using Android Studio on Windows computer
iOS Platform: emulation is carried out using Xcode on MacBook
Development Configuration
Flutter version: 3.3.8
Dart version: 2.18.4
Checklist:
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas, if necessary
[ ] I have made corresponding changes to the documentation, if necessary
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works, if necessary
[ ] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules
[x] I have Acceptance Tested this on an iOS device
[x] I have Acceptance Tested this on an Android device
Description
When the user selects a specific activity in the 'Ugeplan' user interface, it leads them to the 'Aktivitet' user interface, where there are two buttons: 'Afslut' and 'Aflys' (Figure a). If the user presses 'Afslut,' the 'Aflys' button becomes disabled (Figure b). Conversely, if the user presses 'Aflys,' the 'Afslut' button will be disabled (Figure c).
The problem is that the buttons' states aren't updated immediately. The Users have to reload the 'Aktivitet' user interface to see the changes take effect. For example, when the user selects the 'Afslut' button, the 'Aflys' button's state doesn't change right away (Figure d). To observe the correct state as shown in Figure e, the user needs to return to the 'Ugeplan' screen and then select the activity again. After reloading the 'Aktivitet' UI, if the user presses 'Fortryd' (as in Figure e), the 'Aflys' button still displays the incorrect state (Figure f) instead of the expected state (Figure g).
Fixes #\<948> Possible suggested solution: When one button is pressed, the other gray button becomes hidden, and if the user presses 'Fortryd,' both buttons reappear in their normal state (as shown in the figure below). This eliminates the need to reload the 'Aktivitet' user interface every time, ensuring that both buttons are always in a usable state.
Type of change
How Has This Been Tested?
Android Platform: emulation is carried out using Android Studio on Windows computer iOS Platform: emulation is carried out using Xcode on MacBook
Development Configuration
Checklist: