Skip to content

Ability to make more than one instance of the ModularApp #989

Open
@abdelrahmanbonna

Description

@abdelrahmanbonna

Project Name
ModularApp support for SDKs

Is your feature request related to a problem? Please describe.
My team and I were trying to make a flutter package as SDK that uses flutter_modular in its features to separate code and maintain the dependencies. Everything works fine except when the user exits the SDK and returns; the dependencies are not injected, causing some serious issues where the blocs and all components are not found. After hours of investigation, we discovered that you made the ModularApp to only initialize once in the app, and this was the main reason for the issues we are facing.

Describe the solution you'd like
We need a solution for making an alternative of ModularApp or the ability to use it multiple times inside the app so we could make our flutter SDK without any dependency issues.

Describe alternatives you've considered
Currently, there is no alternative.

Additional context
The main goal is to be able to initialize the ModularApp, then dispose it, and then initialize it again with no issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestnewNew issue request attention

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions