do not show 'zoom cursor' if peer side is android

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou 2023-03-11 18:26:36 +08:00
parent 6cf81c811f
commit dc40800210

View File

@ -1457,6 +1457,9 @@ class _DisplayMenuState extends State<_DisplayMenu> {
}
zoomCursor() {
if (widget.ffi.ffiModel.pi.platform == kPeerPlatformAndroid) {
return Offstage();
}
final visible = widget.state.viewStyle.value != kRemoteViewStyleOriginal;
if (!visible) return Offstage();
final option = 'zoom-cursor';