chewie
chewie copied to clipboard
How do I interact with the overlay widget
How do I interact with the overlay widget. It does not seem to respond to any click events. Below is my sample code:
Future
aspectRatio: _controller.value.aspectRatio,
autoInitialize: true,
fullScreenByDefault: true,
overlay: overlayWidget(),
showControls: true,
placeholder: buildPlaceholderImage());
});
}
overlayWidget() { return IconButton( icon: Icon(Icons.edit), color: Colors.yellow, onPressed: () { //this is never called, how I get this working print('icon clicked'); }, ); }
@SampatDixit Did you find any solution? I need this too
Same problem. Also tried to add GestureDetector on top of the Player Widget but all my input is ignored as soon as VideoPlayer is playing. Could only trigger it using an IgnorePointer on Videoplayer which is obviously not what I want.
Any Update regarding to this?