The youtube_player_flutter
package uses an older version of the flutter_inappwebview
plugin, causing this issue. It's a known problem; see Issue #2381 in flutter_inappwebiew
.
To resolve this issue, you can update the youtube_player_flutter
to the latest version or override the dependency of the flutter_inappwebview
.