Hi everyone,
I’m currently working on a Flutter application and I want to embed a Cocos Creator game inside a Flutter view, instead of launching it as a separate standalone app.
Specifically, I’d like to know:
- Is there any official or community Flutter plugin (similar to
flutter_unity_widget) that allows rendering a Cocos Creator game as part of the Flutter widget tree? - If not, what would be the recommended integration approach?
- For example, is it possible to build Cocos Creator as a native Android/iOS library (AAR / Framework) and then integrate it using Flutter Platform Views or Method Channels?
- Or is the better approach to build for Web (HTML5) and embed the game inside a WebView widget?
Ideally, I’m looking for a solution that:
- Runs on both Android and iOS
- Allows bidirectional communication between Flutter and Cocos (e.g., sending events, receiving callbacks)
- Keeps good performance (not just basic WebView if there’s a more optimal way)
If anyone has experience, examples, or best practices for integrating Cocos Creator with Flutter, I’d really appreciate your input.
Thanks in advance! ![]()