Skip to content

Migrate to BetterPlayerPlus, refactor StoryView, and add RTL support - #221

Closed
MohammadAssaf10 wants to merge 20 commits into
blackmann:masterfrom
MohammadAssaf10:fix-story-video-playback
Closed

Migrate to BetterPlayerPlus, refactor StoryView, and add RTL support#221
MohammadAssaf10 wants to merge 20 commits into
blackmann:masterfrom
MohammadAssaf10:fix-story-video-playback

Conversation

@MohammadAssaf10

Copy link
Copy Markdown
  • Replace video player package by better player plus.
  • Update dependencies and refactor story view implementation.
  • Add RTL support to story.

- Update dependencies and refactor story view implementation.
- Add RTL support to story.
…izable button padding for improved layout control.
…ccess to optional properties and adding mounted check for event listener.
…wn, ensuring consistent behavior in story navigation.
…roving navigation consistency and simplifying state management.
…callback resumes playback correctly, improving user experience during navigation.
…, ensuring the current story is correctly managed and enhancing overall navigation flow.
This commit refactors the core `StoryView` widget and its related components for improved state management, performance, and clarity.

Key changes include:
*   **Refactored `StoryView`:** Replaced the "shown" flag logic with a `currentIndex` for more predictable state management.
*   **Improved `StoryImage` and `StoryVideo`:** Enhanced lifecycle management, including better handling of load states, controller listeners, and resource disposal.
*   **Refactored `ImageLoader` and `VideoLoader`:** Implemented stream subscriptions for safer and more efficient resource loading and cancellation.
*   **Simplified `PageBar`:** Converted `PageBar` to a `StatelessWidget` and improved its rendering logic.
*   **Updated Dependencies:** Upgraded `better_player_plus` to `1.1.5` and other dependencies.
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.

1 participant