fix for iOS

This commit is contained in:
rustdesk 2022-04-18 11:46:36 +08:00
parent a348ba3d7e
commit cbc25547ba
3 changed files with 46 additions and 43 deletions

View File

@ -124,6 +124,7 @@ class PlatformFFI {
} }
static invokeMethod(String method,[ dynamic arguments ]) async { static invokeMethod(String method,[ dynamic arguments ]) async {
if (!isAndroid) return Future<bool>(() => false);
return await toAndroidChannel.invokeMethod(method,arguments); return await toAndroidChannel.invokeMethod(method,arguments);
} }
} }

View File

@ -244,7 +244,9 @@ class _ChatWindowOverlayState extends State<ChatWindowOverlay> {
left: _o.dx, left: _o.dx,
width: widget.windowWidth, width: widget.windowWidth,
height: widget.windowHeight, height: widget.windowHeight,
child: Scaffold( child: isIOS
? chatPage
: Scaffold(
resizeToAvoidBottomInset: false, resizeToAvoidBottomInset: false,
appBar: CustomAppBar( appBar: CustomAppBar(
onPanUpdate: (d) => changeOffset(d.delta), onPanUpdate: (d) => changeOffset(d.delta),

View File

@ -20,7 +20,7 @@ class ConnectionPage extends StatefulWidget implements PageShape {
final title = translate("Connection"); final title = translate("Connection");
@override @override
final appBarActions = isWeb ? <Widget>[WebMenu()] : <Widget>[]; final appBarActions = !isAndroid ? <Widget>[WebMenu()] : <Widget>[];
@override @override
final scrollController = ScrollController(); final scrollController = ScrollController();