Files
cutdex/lib/app/adaptive/desktop_workspace_controller.dart
T
lingjhf 1f73765745
Gitea CI / Windows x64 and Android (pull_request) Successful in 16m21s
Gitea CI / Gitea CI passed (pull_request) Successful in 3s
refactor(desktop): reorganize workspace panels and navigation
2026-10-06 12:11:59 +08:00

22 lines
559 B
Dart

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