Fix long-press overlay toggle (#138)

This commit is contained in:
Tommy Chow 2022-06-06 16:15:56 -04:00
parent 604dda65a3
commit 47c4e64a58

View file

@ -72,9 +72,12 @@ class _VideoChatState extends State<VideoChat> {
Widget build(BuildContext context) {
final settingsStore = _chatStore.settings;
final player = _Video(
key: _videoKey,
videoStore: _videoStore,
final player = GestureDetector(
onLongPress: _videoStore.handleToggleOverlay,
child: _Video(
key: _videoKey,
videoStore: _videoStore,
),
);
final videoOverlay = _VideoOverlay(videoStore: _videoStore);