You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tracking: region screenshot example without native MainFlutterWindow.swift code #85
Region screenshot (freeze the display, drag a selection in a full-display overlay, copy / save the crop) in examples/flutter_screen_capture_example should be built from nativeapi calls alone. The app's macos/Runner/MainFlutterWindow.swift should be the stock Flutter template, with no method channel and no NSWindow overrides.
Today (PR #75) the example needs about 140 lines of Swift for things Window / ScreenCapturer can't express yet.
What already exists and the example can switch to directly: SetOpacity (the transparent-until-rendered reveal), SetVisibleOnAllWorkspaces / SetVisibleOnFullScreen (the overlay's collection behaviour), SetHasShadow, Focus, and Display position/size.
Done when
The gaps above are implemented and propagated through the C ABI and the bindings.
The example's region screenshot runs on macOS (Retina and 1× external display) with the stock MainFlutterWindow.swift and the same behaviour as now: the overlay covers the menu bar and Dock, and there is no flash or shrink animation (checked with a 60 fps recording).
Activity
Merge pull request #86 from libnativeapi/feat/issue-85-window-overlay