fix: deactive widget ancester (#8187)

Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
fufesou 2024-05-29 08:16:36 +08:00 committed by GitHub
parent 1bfafaf07c
commit 89d855d085
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -455,9 +455,8 @@ class _RemotePageState extends State<RemotePage>
}, onExit: (evt) {
if (!isWeb) bind.hostStopSystemKeyPropagate(stopped: true);
}, child: LayoutBuilder(builder: (context, constraints) {
Future.delayed(Duration.zero, () {
Provider.of<CanvasModel>(context, listen: false).updateViewStyle();
});
final c = Provider.of<CanvasModel>(context, listen: false);
Future.delayed(Duration.zero, () => c.updateViewStyle());
final peerDisplay = CurrentDisplayState.find(widget.id);
return Obx(
() => _ffi.ffiModel.pi.isSet.isFalse