Enhance location permission handling by introducing a flag for dialog visibility
This commit improves the location permission management by adding a flag to control the visibility of permission dialogs based on the current screen. Key changes include:
- Introduced
setShouldShowPermissionDialogmethod inLocationCubitto manage dialog visibility. - Updated
HomeScreento disable permission dialog display. - Modified
LocationWidgetto conditionally request permissions based on the dialog visibility flag. - Ensured that the
LocationScreensets the flag to show the permission dialog.
These updates aim to streamline the user experience by preventing unnecessary permission prompts in the home screen while maintaining functionality in the location screen.