Files
cutdex/lib/app/adaptive/desktop_workspace_controller.dart
T
lingjhf 27e77fff39 feat: initial Cutdex application
Add the Flutter video editing application with project management, media
import, timeline editing, preview, AI assistance, diagnostics and settings.

Include shared UI and native host packages, platform runners, application
tests and release tooling.

Provide usage and contribution guides, the MIT license and third-party
notices. Exclude local credentials, build outputs and validation data.
2026-10-05 23:36:23 +08:00

17 lines
515 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 _editorCollapsedByAgent = false;
double? get agentWidth => _agentWidth;
bool get editorCollapsedByAgent => _editorCollapsedByAgent;
void setSplit(double? width, {required bool editorCollapsed}) {
_agentWidth = width;
_editorCollapsedByAgent = editorCollapsed;
notifyListeners();
}
}