refactor(desktop): reorganize workspace panels and navigation
This commit is contained in:
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();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user