chewie
chewie copied to clipboard
Controls not visible for videos with white backgrounds.
Is there a way to add some tint/ dark color overlay when the controls are in view?

that would be a great feature...
An overlay was introduced in chewie 1.2.0, see player_with_controls file at time of update. However even until today the overlay is excluded for iOS.
if (Theme.of(context).platform != TargetPlatform.iOS)
Consumer<PlayerNotifier>(
builder: (
BuildContext context,
PlayerNotifier notifier,
Widget? widget,
) =>
AnimatedOpacity(
opacity: notifier.hideStuff ? 0.0 : 0.8,
duration: const Duration(
milliseconds: 250,
),
child: Container(
decoration: const BoxDecoration(color: Colors.black54),
child: Container(),
),
),
),
Does anyone why? I can circumvent this condition by wrapping Chewie into a Theme with TargetPlatform.android enforced:
Theme(
data: Theme.of(context).copyWith(platform: TargetPlatform.android),
child: Chewie(
controller: _chewieController,
),
),
But I don't understand why this condition was added in the first place. Youtube on iOS also has a dark control overlay.