Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Flutter + Flame + Blockly

112 views
Skip to first unread message

Caroline Caprini

unread,
Aug 28, 2024, 11:20:04 AM8/28/24
to Blockly
Hello!

I'm building a Flame/Flutter game integrated with Blockly, where kids can learn basic programming logic moving around a tiny bunny in a 2D platform game. 

Right now, I'm mainly focusing on making it work on the web (after I plan on making it work on mobile), but I'm having difficulty understanding how to integrate Blockly with my Flutter code. Is there any documentation or tutorials for integrating Blockly with Dart/Flutter? Should I go for the JS interop path, or is there something built for Flutter?

If someone has any tips, it'll be greatly appreciated! 

Thank you so much!

Christopher Allen

unread,
Aug 29, 2024, 6:20:43 AM8/29/24
to blo...@googlegroups.com
Hi Caroline,
 
Right now, I'm mainly focusing on making it work on the web (after I plan on making it work on mobile), but I'm having difficulty understanding how to integrate Blockly with my Flutter code. Is there any documentation or tutorials for integrating Blockly with Dart/Flutter? Should I go for the JS interop path, or is there something built for Flutter?

Blockly is a JavaScript library and depends on having a DOM.  We no longer have any special support for any other platform than the web.  We did, some years ago, briefly have Java and Objective C implementations (for Android and iOS respectively) but they were deprecated a long time ago and should not be used.  We've never had any Dart implementation or any specific support for Flutter.  If Flutter will let you embed a webview in your app then it should be reasonably straightforward to inject Blockly into that webview in the ordinary way; if any other forum users have done that then I'm sure any advice they can offer would be most welcome.


Best wishes,

Christopher

Caroline Caprini

unread,
Sep 2, 2024, 3:50:08 AM9/2/24
to Blockly
Hello Christopher! 

Thank you for your answer! I'll keep working on integrating my code with Javascript to see if it works without any issues.

Thank you for being so helpful in this adventure!

Ronan OGOR

unread,
May 7, 2025, 11:46:11 AMMay 7
to Blockly
Helllo  Caroline   !
As awe are  planning similar kindof projects (flutter / bloocky) do you have any feedback after exploring  interactions btw blockky and flutter code?
thx!
Reply all
Reply to author
Forward
0 new messages