Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat/Switch to portrait reading mode #1350

Merged
merged 27 commits into from
Oct 14, 2024

Conversation

ghassenbenzahra123
Copy link
Contributor

📝 Summary

This PR fixes #1226

📝 Screenshots

20241001_123745.mp4

Checklist:

  • Coding Standards: I have reviewed my code to ensure it follows the project's coding standards.
  • Testing: I have tested the changes and they work as expected.
  • Merge Conflicts: I have resolved any merge conflicts with the latest main/development branch.
  • Branch Status: The branch is up-to-date with the target branch (main/development).

YassinNouh21 and others added 16 commits September 17, 2024 22:17
- Introduced `MoshafType` as a parameter in various functions to support multiple Quran versions.
- Updated `DownloadQuranLocalDataSource` to handle versioning based on `MoshafType`.
- Enhanced `DownloadQuranState` with states for checking downloads and handling errors.
- Refactored Notifiers and Repositories to include `MoshafType` in state management.
- Improved the UI with a new `DownloadQuranDialog` for better user interaction during downloads.
- Cleaned up redundant code and improved error handling across the application.
- Updated `download_quran_popup.dart` to streamline dialog handling and improve state management.
- Changed `getLocalQuranVersion` in `quran_download_repository.dart` to return an `Option<String>` for better null safety.
- Enhanced `download_quran_notifier.dart` for more efficient state transitions and error handling.
- Refactored local data operations in `download_quran_local_data_source.dart` to utilize `Option` for version management.
- Improved moshaf switching logic in `moshaf_type_notifier.dart` and related UI components.
- Removed unnecessary dialog calls in `quran_reading_screen.dart` to prevent duplicate dialogs.
- Introduced `isFirstTime` property in `MoshafState` to track first-time usage.
- Updated `download_quran_notifier.dart` to prompt downloads for first-time users.
- Enhanced `moshaf_type_notifier.dart` to initialize `isFirstTime` from shared preferences.
- Added `setNotFirstTime` method to update the state after the first download.
- Defined a constant for first-time usage in `constants.dart`.
@ghassenbenzahra123 ghassenbenzahra123 self-assigned this Oct 1, 2024
@YassinNouh21 YassinNouh21 changed the title Feat/Switch to portrait reading mode feat/Switch to portrait reading mode Oct 3, 2024
ghassenbenzahra123 and others added 7 commits October 9, 2024 13:35
# Conflicts:
#	lib/src/pages/quran/page/quran_reading_screen.dart
#	lib/src/state_management/quran/reading/quran_reading_notifer.dart
…ments

- Updated focus node debug labels for consistency and clarity.
- Removed unnecessary debug print statements for cleaner code.
- Removed redundant `super.dispose()` in `dispose()` method to avoid errors.
- Added `heroTag: null` to FloatingActionButton instances to prevent hero animation conflicts.
- Updated `_handlePageScrollDownFocusGroupNode` to check for portrait mode before handling arrow down key event.
…state update

- Added custom color to the `CircularProgressIndicator` in QuranReadingScreen to match the theme.
- Set `state = AsyncLoading()` in QuranReadingNotifier when starting SVG loading to ensure proper loading state management.
@ghassenbenzahra123 ghassenbenzahra123 merged commit d1b9e22 into main Oct 14, 2024
1 check passed
@ghassenbenzahra123 ghassenbenzahra123 deleted the feat/switch-portrait-mode-reading-quran branch October 14, 2024 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Quran features 3
2 participants