Skip to main content

depend 5.2.0 copy "depend: ^5.2.0" to clipboard
depend: ^5.2.0 copied to clipboard

depend simplifies dependency management in Flutter apps, providing easy initialization and access to services across the widget tree.

5.2.0 #

  • Add the LazyDisposable interface, implemented by LazyGet and LazyFutureGet
  • Add an optional dispose callback and a dispose() method to LazyGet and LazyFutureGet. The factory is not called if nothing was created, and the next instance access after dispose() creates a new object
  • Fix DependencyScope recreating the container and losing the subtree state on every parent rebuild
  • Fix DependencyScope leaking a container still being created when the scope was removed, and disposing a container twice
  • Fix a synchronous throw in DependencyFactory.create bypassing errorBuilder
  • Behavior change: DependencyScope reads factory once, a new factory no longer recreates the container. Give the scope a new key instead, e.g. ValueKey(userId)
  • Fix LazyFutureGet caching a failed load forever: the next instance access retries
  • Fix LazyFutureGet calling the factory again when it resolved to null
  • Fix LazyGet and LazyFutureGet documentation examples that used a call instead of .instance
  • Rewrite the example as a todo app with nested scopes, Clean Architecture layers and widget tests
  • Fix the lazy initialization examples in the README
  • Run CI on the Flutter version from .fvmrc, also on master and on test changes

5.1.5 #

  • Fix homepage: pointed at www.contributors.info, a host that does not resolve; it now points at the repository
  • Drop the funding link: the Patreon page it named returns 404
  • Refresh the README badge row

5.1.4 #

  • Update version flutter

5.1.3 #

  • Test lazy initialization

5.1.2 #

  • Fix lazy initialization

5.1.1 #

  • Refactor lazy initialization

5.1.0 #

  • Add lazy initialization dependency

5.0.2 #

  • Change README

5.0.1 #

  • DependencyFactory method create return FutureOr

5.0.1-dev #

  • DependencyFactory method create return FutureOr

5.0.0 #

  • DependencyFactory for initialize DependencyContainer

5.0.0-dev #

  • DependencyFactory for initialize DependencyContainer

4.0.0 #

  • Big Refactoring

3.0.0 #

  • Rename classes, all test passed, change readme

2.0.3 #

  • Fix dispose

2.0.2 #

  • Fix Example

2.0.1 #

  • Add dispose for DependencyLibrary

2.0.0 #

  • Fix bugs, Add new feature, parent dependency

1.0.4 #

  • Fix bugs

1.0.3 #

  • Fix documentation

1.0.2 #

  • Fix async bugs

1.0.1 #

  • New Description

1.0.0 #

  • Add new feature.

0.0.1 #

  • Initial release.
10
likes
160
points
1.07k
downloads
screenshot

Documentation

API reference

Publisher

verified publisherbangertstudio.kz

Weekly Downloads

depend simplifies dependency management in Flutter apps, providing easy initialization and access to services across the widget tree.

Repository (GitHub)
View/report issues

Topics

#dependency #injection #dependency-injection #service #dependency-management

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on depend