Add toggle fullscreen with double tap (#163)
This commit is contained in:
parent
334f353af1
commit
ffd3d9c5ea
1 changed files with 6 additions and 0 deletions
|
|
@ -89,6 +89,12 @@ class _VideoChatState extends State<VideoChat> {
|
|||
|
||||
final overlay = GestureDetector(
|
||||
onLongPress: _videoStore.handleToggleOverlay,
|
||||
onDoubleTap: () {
|
||||
if (MediaQuery.of(context).orientation == Orientation.portrait) return;
|
||||
|
||||
// Double tap to toggle fullscreen in landscape mode.
|
||||
settingsStore.fullScreen = !settingsStore.fullScreen;
|
||||
},
|
||||
onTap: () {
|
||||
if (_chatStore.assetsStore.showEmoteMenu) {
|
||||
_chatStore.assetsStore.showEmoteMenu = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue