fluttercommunity / fluttercommunity/chewie

How do I interact with the overlay widget

Open
#371 4 comments 6 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
2.1k
Forks
1.1k
Avg merge
6d 8h
Merged PRs (30d)
6

Description

How do I interact with the overlay widget. It does not seem to respond to any click events. Below is my sample code:

Future initVideoPlayer() async {
await _controller.initialize();
setState(() {
_chewieController = ChewieController(
videoPlayerController: _controller,
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');
},
);
}

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.