Flutter iOS Share Extension UI Not Rendering
I’m attempting to create a Share Extension in Flutter for iOS, following the official Flutter information: Creating App Extension UIs with Flutter.
Drawback
Whereas each Swift and Dart code seem to execute efficiently (as confirmed by logs), the Flutter UI doesn’t render. As a substitute, solely the background view (inexperienced) is displayed, and the Flutter app content material by no means exhibits up.
Right here’s a minimal instance repository I’ve created to breed the problem:
👉 https://github.com/dagyu/ios_share_extension_flutter
Observations
-
GIF demonstration:
The inexperienced background view is displayed, however the Flutter content material is lacking. https://ibb.co/cbMTySH -
Xcode logs:
Logs verify that Dart and Swift code are executed as anticipated. https://ibb.co/Wkz1Nw2
Extra Info
Any insights into why the Flutter UI isn’t rendering or learn how to resolve this might be tremendously appreciated! Thanks! 😊
- Debugged a number of occasions to hint the problem, however the root reason behind the lacking Flutter UI stays unclear.
- Tried with totally different Flutter variations (3.27.1, 3.24.0, and 3.22.0) to rule out version-related issues. The difficulty persists throughout all examined variations.