How to import flutter module to a flutter project?

Viewed 1768

I have a flutter module project and I want to import it into another existing flutter project, how can I do this?

I think this may not be possible since there will be two main function and don't know how they communicate.

Are there any suggestion so I can combine the these two things? I want to open the module app in another flutter app.

2 Answers

Flutter yet to support this feature out of the box, see issue #64542 for more details.

Since the feature request that was mentioned in above is still open, the best solution that I can think of is by merging another application to your existing flutter application by importing the application you want to merge as a module. Check also this SO post, where this kind of scenario was explained.

Related