Skip to content

chore(example): adopt the UIScene lifecycle in the example app - #151

Open
luflow wants to merge 1 commit into
berkaycatak:mainfrom
luflow:chore/example-uiscene
Open

luflow wants to merge 1 commit into
berkaycatak:mainfrom
luflow:chore/example-uiscene

Conversation

@luflow

@luflow luflow commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

Flutter 3.44 applies this migration to the example project on every build, so anyone building the example finds their working tree modified afterwards. Committing it stops that drift and moves the app onto the scene-based lifecycle iOS expects.

  • Info.plist declares a UIApplicationSceneManifest pointing at FlutterSceneDelegate (plus CADisableMinimumFrameDurationOnPhone, which the same migration adds)
  • AppDelegate registers plugins through FlutterImplicitEngineDelegate.didInitializeImplicitFlutterEngine instead of doing it in didFinishLaunchingWithOptions

Testing

Built and run on an iPhone 17 Pro simulator (iOS 26.2) — the app launches and renders normally. A lifecycle migration can compile fine and still come up to a blank window, so I checked the running app rather than just the build.

Worth knowing before merging

Flutter 3.44 applies this migration to the example project on every build,
so the working tree keeps drifting for anyone building it. Committing it
stops that and moves the app onto the scene-based lifecycle iOS wants.

Info.plist declares a UIApplicationSceneManifest pointing at
FlutterSceneDelegate, and AppDelegate registers plugins through
FlutterImplicitEngineDelegate instead of doing it in
didFinishLaunchingWithOptions.
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