Skip to content

Dependency Injection

Dependency injection is no longer opinionated in flutter_solidart and you can use any dependency injection library you want.

The old Solid widget has been removed, and a new library called disco has been introduced to handle dependency injection in a more flexible and powerful way.

Our suggestions is to use disco for dependency injection in flutter_solidart applications, but you’re free to use what works best for you.

disco has been built on top of Solid to provide a more powerful and flexible way to handle dependency injection.

Refer to the official disco documentation which contains also examples written with flutter_solidart