Norbert515 / flutter_ide

A visual editor for Flutter widgets

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rendering inside the IDE

miDeb opened this issue · comments

So does this mean that when you change the source code of your app, the IDE needs also to be reloaded? Or how would this work?

There are multiple ways how this could work.
What I currently have (and it works pretty well) is that the IDE is just a part of the app. So yes it is also reloaded.

Being naive on the details, wouldn't reloading the entire IDE chew up a ton of RAM?

This would also mean that the whole IDE runs in debug mode. I don't know how this would impact performance.

That's a pretty good point. I'll try out a few things & think about it.

AFAIK it's only about assertions(AOT is not supported on desktop, there will always be a vm in JIT mode)

I don't see why AOT wouldn't be possible.

Nonetheless, reloading the whole IDE is not an optimal and permanent solution.

Thought about "having runtime access in the IDE" a bit more and I feel like that's not that necessary.
All communication can be done through local servers (like other IDEs do).

Then it would be possible to have the IDE and the actual App as two separate Flutter instances running.

In theory, it should be possible to embed a Flutter view inside another Flutter view (just like it is done with Google Maps and the Web View).

Will explore the idea more at a later point

google/flutter-desktop-embedding#129 (comment):

flutter build is not capable of making AOT builds for desktop.

there's no guarantee that AOT will actually be faster than JIT

Wait... Would it be possible to write a flutter embedder in flutter?? (just an idea)

Haha, that's kinda what we already did :)
Not Flutter but Dart. More info coming as soon as we sorted out a few things!

you guys mean this, there is already an api setup for embedding flutter in dart here
https://github.com/google/flutter-desktop-embedding