Implement Blockly widget into Flutter

1.2k views Asked by At

I'm new into Flutter and I'm trying to add Blockly into Flutter for an app for kids. I want to be able to program some code into a Flutter app with Blockly, practically I'm trying to create a route with inside a Blockly widget in which the kid, through Blockly, can codes some simple programs and these are used by the Flutter app to do something.

1

There are 1 answers

5
Radu Hrihoreanu On BEST ANSWER

If I understood right, you want to use Blockly as a widget inside your app. A way to do that is to create a route that has a WebView widget in order to display Blockly:

 @override
  Widget build(BuildContext context) {
    return WebView(
      initialUrl: 'https://developers.google.com/blockly',
    );
  }