chewie icon indicating copy to clipboard operation
chewie copied to clipboard

Option to customize the overlay colour during hover.

Open sanalkv opened this issue 2 years ago • 2 comments

Screenshot 2023-11-30 at 1 43 39 PM

There should be an option inside chewie controller to mention the color for overlay. Currently it's Colors.black54 and can't be changed.

sanalkv avatar Nov 30 '23 08:11 sanalkv

A workaround to remove that overlay is to wrap the player into a Theme widget with iOS target platform:

final themeData = Theme.of(context);
return Theme(
  data: themeData.copyWith(platform: TargetPlatform.iOS),
  child: Chewie(controller: chewieController),
);

As a side effect, you will get CupertinoControls so set the controls class explicitly if you care.

If you want an overlay of a different color, you can add it through ChewieController.overlay.

alexeyinkin avatar Jun 23 '24 10:06 alexeyinkin