context_di 0.2.5 copy "context_di: ^0.2.5" to clipboard
context_di: ^0.2.5 copied to clipboard

Flutter Provider based Dependency Injection Tool supports two main scopes factory and singleton with code generation

0.2.4 #

documentation update

0.2.3 #

export BuildContext

refactoring

initial release

0.2.2-Preview #

Changed factory handling

now better approach is use code generation and resolve like this:

factories:


final bloc = context.read<CreateListBloc>()(context);

final bloc = context.read<CreateEntityBloc>()(context, (id: _id));

CreateListBloc and CreateEntityBloc will be generated

singletons:


final repo = contex.read<RepositoryInterface>();

old resolve approach still works

add child to FeatureDependencies and changed builder to more like MultiProvider

4
likes
145
points
134
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Flutter Provider based Dependency Injection Tool supports two main scopes factory and singleton with code generation

Repository (GitHub)
View/report issues

Topics

#dependency #injection #dependency-injection #provider #flutter

License

MIT (license)

Dependencies

flutter, provider

More

Packages that depend on context_di