workaround for https://github.com/rustdesk/rustdesk/issues/3131
This commit is contained in:
parent
244cfa25f1
commit
1f5d68ef22
@ -228,13 +228,18 @@ class _RemotePageState extends State<RemotePage> {
|
|||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
child: getRawPointerAndKeyBody(Scaffold(
|
child: getRawPointerAndKeyBody(Scaffold(
|
||||||
// resizeToAvoidBottomInset: true,
|
// workaround for https://github.com/rustdesk/rustdesk/issues/3131
|
||||||
|
floatingActionButtonLocation: hideKeyboard
|
||||||
|
? FABLocation(FloatingActionButtonLocation.endFloat, 0, -35)
|
||||||
|
: null,
|
||||||
floatingActionButton: !showActionButton
|
floatingActionButton: !showActionButton
|
||||||
? null
|
? null
|
||||||
: FloatingActionButton(
|
: FloatingActionButton(
|
||||||
mini: !hideKeyboard,
|
mini: !hideKeyboard,
|
||||||
child: Icon(
|
child: Icon(
|
||||||
hideKeyboard ? Icons.expand_more : Icons.expand_less),
|
hideKeyboard ? Icons.expand_more : Icons.expand_less,
|
||||||
|
color: Colors.white,
|
||||||
|
),
|
||||||
backgroundColor: MyTheme.accent,
|
backgroundColor: MyTheme.accent,
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
setState(() {
|
setState(() {
|
||||||
@ -1134,3 +1139,16 @@ void sendPrompt(bool isMac, String key) {
|
|||||||
gFFI.inputModel.ctrl = old;
|
gFFI.inputModel.ctrl = old;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class FABLocation extends FloatingActionButtonLocation {
|
||||||
|
FloatingActionButtonLocation location;
|
||||||
|
double offsetX;
|
||||||
|
double offsetY;
|
||||||
|
FABLocation(this.location, this.offsetX, this.offsetY);
|
||||||
|
|
||||||
|
@override
|
||||||
|
Offset getOffset(ScaffoldPrelayoutGeometry scaffoldGeometry) {
|
||||||
|
final offset = location.getOffset(scaffoldGeometry);
|
||||||
|
return Offset(offset.dx + offsetX, offset.dy + offsetY);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user