context_di 0.2.4 copy "context_di: ^0.2.4" to clipboard
context_di: ^0.2.4 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

3
likes
160
points
172
downloads

Publisher

unverified uploader

Weekly Downloads

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

Repository (GitHub)

Topics

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

Documentation

API reference

License

MIT (license)

Dependencies

flutter, provider

More

Packages that depend on context_di