CCExtractor / ultimate_alarm_clock

GNU General Public License v2.0
68 stars 124 forks source link

add overlay pop up over all apps for stop watch , fix issue #523 #524

Closed AmrAbdElHamed26 closed 3 weeks ago

AmrAbdElHamed26 commented 6 months ago

This PR introduces a Stopwatch Popup Overlay to enhance user experience by allowing users to access the stopwatch functionality without switching between apps. The overlay popup is designed to be unobtrusive, ensuring it doesn't obscure important content on the screen, and provides the flexibility to change its position as needed.

Three new functions have been added:

1- _showStopWatchPopUpOverlay: Displays the popup overlay for the stopwatch. 2- _updatePopUpOverLayStopWatchResult: Sends data to the Stopwatch Popup Overlay and updates the time using a StreamBuilder. 3- _closeStopWatchPopUpOverlay: Closes the Stopwatch Popup Overlay without affecting the stopwatch timer on the main app screen. Additionally, the StopWatchOverLayWidget component has been added to facilitate the creation and usage of the popup overlay.

The project structure has been updated accordingly, and these changes have been implemented specifically for Android. Further updates to make the overlay popup functionality compatible with both Android and iOS will be addressed in a separate issue for the _overlay_popup package.

Fixes the issue #523 video :

https://github.com/CCExtractor/ultimate_alarm_clock/assets/86882938/a3e09847-408a-4950-82d9-7a0b39952656