add overlay pop up over all apps for stop watch , fix issue #523 #524
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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_pop_up package.
Fixes the issue #523
video :
XRecorder_17032024_054352.mp4