context_di 0.2.4
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