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(); } }