sarbagyastha / youtube_player_flutter

Flutter plugin for playing or streaming YouTube videos inline using the official iFrame Player API. Supports both Android and iOS platforms.
BSD 3-Clause "New" or "Revised" License
682 stars 754 forks source link

[BUG] Web No work on release mode #953

Open natouralDS opened 1 month ago

natouralDS commented 1 month ago

Describe the bug When I try in debugMode It works perfect, but when i compile to release y got a grey screen and the error message: "Null check operator used on a null value"

To Reproduce I compile with diferents commands, but I always get the same error when I launch the code in my server: flutter build web
flutter build web --web-renderer html --release

Expected behavior I got this message: Null check operator used on a null value

Screenshots Captura de pantalla 2024-06-10 a las 0 36 21

Technical Details:

Additional context Add any other context about the problem here.

AnithaB05 commented 1 month ago

I am using flutter web, with youtube_player_iframe: ^5.1.2 flutter doctor screen shot is attached: image

I too get "Null check operator used on a null value", on hosting the application.

Any help is highly appreciated. image