1

Is it possible to write a flutter code and save it inside Database and then send it to a flutter application and implement this code .. Is this possible?

We see that it is possible to write flutter code on the web and make a run for it, for example: https://flutlab.io/editor

What I want to do is write the code and save it as a string inside Database. Then send it through the api to my filter application and the application takes this to the string and executes it as a flutter code written inside the application

8
  • What you're talking about it's called "code push" and it's not possible in Flutter because, once you compile the code, AOT is being used and JIT no longer work. Commented Feb 23, 2022 at 15:08
  • Can something like this be built from scratch?? Or is it not possible at all? Commented Feb 26, 2022 at 11:29
  • not possible at the moment and I don’t see it possible in the near future (and maybe never will be) Commented Feb 26, 2022 at 17:04
  • After a very long search, can you take a look at this? github.com/Norbert515/flutter_experiment_phone_ide github.com/Norbert515/flutter_ide Commented Feb 28, 2022 at 11:48
  • Again, that's JIT running... you can't compile and get apps into the Store with JIT. Once you compile, it goes to AOT which doesn't allow code push. What you just send is the exact same as dartpad.dev Commented Feb 28, 2022 at 14:36

1 Answer 1

3

No (un)fortunately. Dart uses an AOT and JIT and you need to learn about those to understand the reasoning behind this. You can learn more about them here: https://dart.dev/faq#q-which-is-faster--aot--or-jit-compiled-code

Sign up to request clarification or add additional context in comments.

1 Comment

Is it possible to look at this package? pub.dev/packages/flutter_code_push

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.