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.
17 lines
515 B
Dart
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();
|
|
}
|
|
}
|