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

Make the initial black background color customizable in youtube_player_flutter #1036

Open
behzodfaiziev opened this issue Dec 16, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@behzodfaiziev
Copy link

Problem

The initial black background that appears when loading the YouTube player is currently hardcoded and cannot be customized. This is particularly noticeable during loading or when the video is not playing, making the screen appear completely black.

Proposed Solution

Allow developers to customize the background color of the player by injecting a Color parameter. By default, this can still be black to maintain backward compatibility.

Benefits

  • Improves customization for developers.
  • Allows for seamless integration with different app themes.
  • Enhances user experience, especially in apps with non-black themes.

Steps to Reproduce

  • Use youtube_player_flutter in an app with a light theme.
  • Observe that the player background remains black during loading.

Suggested API Changes

  • Add a backgroundColor property in the player configuration.
  • Default value should remain Colors.black.
@behzodfaiziev behzodfaiziev added the enhancement New feature or request label Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants