Skip to content

Add Flutter lifecycle listener#152

Open
nmfisher wants to merge 1 commit into
developfrom
feat/flutter-lifecycle
Open

Add Flutter lifecycle listener#152
nmfisher wants to merge 1 commit into
developfrom
feat/flutter-lifecycle

Conversation

@nmfisher
Copy link
Copy Markdown
Owner

No description provided.

…stener

Extracts the native frame scheduling machinery out of
ThermionFlutterPluginImpl into its own singleton (FrameScheduler). The
plugin now delegates start/stop/pause/resume to FrameScheduler.instance
and wires up a WidgetsBindingObserver so backgrounding the app actually
stops the native vsync callbacks (instead of busy-waiting with a paused
flag). Linux keeps the pause-flag path because its persistent Flutter
frame callback can't be cleanly torn down and re-registered.

Mirrors the equivalent commits on origin/feat/flutter-lifecycle
(bb6bbf9 + 675c33b), applied directly here rather than merged in
because the remote branch was cut from an older master with an
incompatible directory layout.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@nmfisher nmfisher force-pushed the feat/flutter-lifecycle branch from 675c33b to ada4677 Compare April 22, 2026 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant