refactor(desktop): reorganize workspace panels and navigation
Gitea CI / Windows x64 and Android (pull_request) Successful in 16m21s
Gitea CI / Gitea CI passed (pull_request) Successful in 3s

This commit is contained in:
lingjhf committed 2026-10-06 12:11:59 +08:00
1 parent 826745b407
commit 1f73765745
92 files changed
+5811 -2650

No files matched your search

@@ -3,14 +3,19 @@ import 'package:flutter/foundation.dart';
/// Desktop split preferences outlive the desktop shell when a window narrows.
class DesktopWorkspaceController extends ChangeNotifier {
double? _agentWidth;
bool _editorCollapsedByAgent = false;
bool _agentFullscreen = false;
double? get agentWidth => _agentWidth;
bool get editorCollapsedByAgent => _editorCollapsedByAgent;
bool get agentFullscreen => _agentFullscreen;
void setSplit(double? width, {required bool editorCollapsed}) {
void setAgentWidth(double width) {
_agentWidth = width;
_editorCollapsedByAgent = editorCollapsed;
notifyListeners();
}
void setAgentFullscreen(bool value) {
if (_agentFullscreen == value) return;
_agentFullscreen = value;
notifyListeners();
}
}