complete_dependency_injector_flutter 2.0.3
complete_dependency_injector_flutter: ^2.0.3 copied to clipboard
Flutter extensions for complete_dependency_injector, including a lightweight, non-opinionated state management solution.
2.0.3 #
- Requires
complete_dependency_injector2.0.3. - Fixed: when a parent of
DependenciesBuilderrebuilt, it listened to the ViewModel's streams again. A ready ViewModel dropped back toloadinguntil the next emission, and a single-subscription stream threwBad state: Stream has already been listened to. - Fixed: a ViewModel created inside a parent's
buildwas replaced on every parent rebuild and lost its state.DependenciesBuildernow keeps the first ViewModel it is given; give it a newkeyto start over. - Fixed: a ViewModel's
errorstayedtrueafter its streams recovered. - Fixed: if
setPropertiesOnDependencyResolutionthrew, the next rebuild reported the ViewModel as ready with its properties unset. It now stays in the error state, and the exception is reported throughFlutterError. - Fixed:
InjectorScopeWidgetcreated a throwawayInjectoron every build. It now creates one, and replaces it (disposing the old one) only when itsproviderschange or it moves under a different parent injector. A changedproviderslist used to be ignored. - Fixed: an
InjectorScopeWidgetmoved with aGlobalKeyunder a different parent kept using the old parent injector. - Fixed:
InjectorRootWidgetignored a newinjector. It now switches to the new one and disposes the old one.
2.0.1 #
- README install snippet now shows
^2.0.0.
2.0.0 #
- Requires
complete_dependency_injector2.0.0, where the injector that provides a service owns its instance. A service provided by anInjectorScopeWidgetgets one instance per scope, disposed with the scope. You no longer needscope: InjectableScope.instanceon its factory (that option was removed).
1.0.1 #
- Added docs site.
- Resolved all analyzer infos:
DependenciesBuilderViewModelStatesvalues are now lowerCamelCase and ViewModel base methods declarevoidreturn types. InjectorProviderWidgetnow passes its currentchildon rebuild instead of the child from its first build.
1.0.0 #
- Initial version.