fix for iOS
This commit is contained in:
parent
a348ba3d7e
commit
cbc25547ba
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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),
|
||||||
|
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user