mirror of
https://github.com/jonasbark/swiftcontrol.git
synced 2026-12-04 12:42:18 +01:00
Add lib/services/overlay/desktop_overlay_window.dart with runDesktopOverlayWindow(): configures the sub-window via window_manager (220×140, frameless, transparent, always-on-top), registers a setWindowMethodHandler for 'state'/'close' calls from the parent, and routes 'hide'/'toggleMode'/'positionChanged' back via WindowMethodChannel. Update main() to call WindowController.fromCurrentEngine() after WidgetsFlutterBinding.ensureInitialized(); if the arguments indicate role=trainer-overlay it dispatches to runDesktopOverlayWindow and returns early, keeping all heavy init (Settings, IAP, Supabase) out of the sub-window process. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>