mirror of
https://github.com/MeowLynxSea/vissh.git
synced 2025-07-09 19:44:34 +00:00
修复窗口闪烁
This commit is contained in:
parent
3ec54d41f1
commit
4fade2c4e8
@ -291,11 +291,9 @@ class _WindowManagerState extends State<WindowManager> {
|
|||||||
children: [
|
children: [
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Stack(
|
child: Stack(
|
||||||
children: _windows.map((data) {
|
children: _windows.where((w) => !w.isMinimized).map((data) {
|
||||||
final bool isActive = data.id == activeWindowId;
|
final bool isActive = data.id == activeWindowId;
|
||||||
return Offstage(
|
return DraggableWindow(
|
||||||
offstage: data.isMinimized,
|
|
||||||
child: DraggableWindow(
|
|
||||||
key: ValueKey(data.id),
|
key: ValueKey(data.id),
|
||||||
id: data.id,
|
id: data.id,
|
||||||
initialPosition: data.position,
|
initialPosition: data.position,
|
||||||
@ -311,7 +309,6 @@ class _WindowManagerState extends State<WindowManager> {
|
|||||||
onResize: _updateWindowSize,
|
onResize: _updateWindowSize,
|
||||||
onMaximizeChanged: _updateWindowMaximizeState,
|
onMaximizeChanged: _updateWindowMaximizeState,
|
||||||
child: data.child,
|
child: data.child,
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}).toList(),
|
}).toList(),
|
||||||
),
|
),
|
||||||
|
Loading…
Reference in New Issue
Block a user