flutter_desktop: remote window cursor debug (getx)
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
parent
fd8c83497d
commit
47b7e84aca
@ -347,36 +347,36 @@ class _RemotePageState extends State<RemotePage>
|
|||||||
return MouseRegion(
|
return MouseRegion(
|
||||||
cursor: SystemMouseCursors.basic,
|
cursor: SystemMouseCursors.basic,
|
||||||
child: BottomAppBar(
|
child: BottomAppBar(
|
||||||
elevation: 10,
|
elevation: 10,
|
||||||
color: MyTheme.accent,
|
color: MyTheme.accent,
|
||||||
child: Row(
|
child: Row(
|
||||||
mainAxisSize: MainAxisSize.max,
|
mainAxisSize: MainAxisSize.max,
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
Row(
|
Row(
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
IconButton(
|
IconButton(
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
icon: Icon(Icons.clear),
|
icon: Icon(Icons.clear),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
clientClose(_ffi.dialogManager);
|
clientClose(_ffi.dialogManager);
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
] +
|
] +
|
||||||
<Widget>[
|
<Widget>[
|
||||||
IconButton(
|
IconButton(
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
icon: Icon(Icons.tv),
|
icon: Icon(Icons.tv),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
setState(() => _showEdit = false);
|
setState(() => _showEdit = false);
|
||||||
showOptions(widget.id, _ffi.dialogManager);
|
showOptions(widget.id, _ffi.dialogManager);
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
] +
|
] +
|
||||||
(isWebDesktop
|
(isWebDesktop
|
||||||
? []
|
? []
|
||||||
: _ffi.ffiModel.isPeerAndroid
|
: _ffi.ffiModel.isPeerAndroid
|
||||||
? [
|
? [
|
||||||
IconButton(
|
IconButton(
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
icon: Icon(Icons.build),
|
icon: Icon(Icons.build),
|
||||||
@ -411,29 +411,29 @@ class _RemotePageState extends State<RemotePage>
|
|||||||
onPressed: () {
|
onPressed: () {
|
||||||
_ffi.chatModel
|
_ffi.chatModel
|
||||||
.changeCurrentID(ChatModel.clientModeID);
|
.changeCurrentID(ChatModel.clientModeID);
|
||||||
_ffi.chatModel.toggleChatOverlay();
|
_ffi.chatModel.toggleChatOverlay();
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
]) +
|
]) +
|
||||||
[
|
[
|
||||||
IconButton(
|
IconButton(
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
icon: Icon(Icons.more_vert),
|
icon: Icon(Icons.more_vert),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
setState(() => _showEdit = false);
|
setState(() => _showEdit = false);
|
||||||
showActions(widget.id);
|
showActions(widget.id);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
]),
|
]),
|
||||||
IconButton(
|
IconButton(
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
icon: Icon(Icons.expand_more),
|
icon: Icon(Icons.expand_more),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
setState(() => _showBar = !_showBar);
|
setState(() => _showBar = !_showBar);
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// touchMode only:
|
/// touchMode only:
|
||||||
@ -533,8 +533,10 @@ class _RemotePageState extends State<RemotePage>
|
|||||||
Provider.of<CanvasModel>(context, listen: false).updateViewStyle();
|
Provider.of<CanvasModel>(context, listen: false).updateViewStyle();
|
||||||
});
|
});
|
||||||
return ImagePaint(
|
return ImagePaint(
|
||||||
id: widget.id,
|
id: widget.id,
|
||||||
);
|
cursorOverImage: _cursorOverImage,
|
||||||
|
listenerBuilder: _buildImageListener,
|
||||||
|
);
|
||||||
}),
|
}),
|
||||||
))
|
))
|
||||||
];
|
];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user