Add RemoteToolbar to Obx(()) to rebuild after pi is recved
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
parent
c1a577797a
commit
56ff88934f
@ -266,12 +266,12 @@ class _RemotePageState extends State<RemotePage>
|
||||
},
|
||||
inputModel: _ffi.inputModel,
|
||||
child: getBodyForDesktop(context))),
|
||||
Obx(
|
||||
() => _ffi.ffiModel.pi.isSet.isTrue &&
|
||||
Obx(() => Stack(
|
||||
children: [
|
||||
_ffi.ffiModel.pi.isSet.isTrue &&
|
||||
_ffi.ffiModel.waitForFirstImage.isTrue
|
||||
? emptyOverlay()
|
||||
: Offstage(),
|
||||
),
|
||||
RemoteToolbar(
|
||||
id: widget.id,
|
||||
ffi: _ffi,
|
||||
@ -281,9 +281,9 @@ class _RemotePageState extends State<RemotePage>
|
||||
onEnterOrLeaveImageCleaner: () =>
|
||||
_onEnterOrLeaveImage4Toolbar = null,
|
||||
),
|
||||
Obx(
|
||||
() => _ffi.ffiModel.pi.isSet.isFalse ? emptyOverlay() : Offstage(),
|
||||
),
|
||||
_ffi.ffiModel.pi.isSet.isFalse ? emptyOverlay() : Offstage(),
|
||||
],
|
||||
)),
|
||||
],
|
||||
),
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user