'How to import flutter module to a flutter project?

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.



Solution 1:[1]

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

Solution 2:[2]

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.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 selvan
Solution 2 MαπμQμαπkγVπ.0