pottery 0.5.0 copy "pottery: ^0.5.0" to clipboard
pottery: ^0.5.0 copied to clipboard

Utility widgets for Pot in Flutter, automatically managing the lifecycle of pots and the objects they hold based on the widget lifecycle.

0.5.0 #

  • Update minimum Dart SDK version to 3.6.2.
  • Improve Pottery.startExtension() to do nothing in debug mode.
  • Improve tables and detail view in DevTools extension.
  • Add maybeOf().
    • Returns null if no relevant LocalPottery is found.
    • Note that it also returns null if the target object is nullable and its value is null.
  • Breaking:
    • Change of() to throw if no relevant LocalPottery is found.
      • Use maybeOf() to get null instead.
    • Replace pots parameter (Map) with type-safe overrides (List) via set(). (#14)
      • Before: pots: {myPot: () => object)}
      • After: overrides: [myPot.set(() => object)]
    • Trivial changes:
      • Remove deprecated LocalPottery alias.
      • Rename NearestPotOf extension to NearestLocalPotObjectOf.

0.4.3 #

  • Improve performance of of() by reducing lookup costs.
  • Bump pot version to 0.8.0.
  • Sync with pot internal API update.

0.4.2 #

  • Update and improve documentation and examples.
  • Update DevTools extension.

0.4.1 #

  • Improve DevTools extension to show objectUpdate events in events view.

0.4.0 #

  • Add startExtension() to allow to start the DevTools extension manually before using Pottery or LocalPottery.

0.3.0 #

  • Add DevTools extension.
  • Use pot 0.7.1.

0.2.0 #

  • Breaking
    • Rename ScopedPottery to LocalPottery. (#7)
      • This is to avoid it being confused with the scoping feature of package:pot.
      • ScopedPottery now exists as an alias, but will be removed.
    • Rename ScopedPots to LocalPotteryObjects. (#7)
      • This is the type name of the builder parameter of LocalPottery.
  • Raise the minimum Flutter SDK version to 3.10.0.

0.1.1 #

  • Bump pot version to 0.6.0.

0.1.0 #

  • Breaking
    • Rename PotsMap to PotReplacements.
  • Add ScopedPottery (#4).
  • Implement debugFillProperties().
  • Bump pot version to 0.5.0.
  • Add new tests to ensure correct behaviours.
  • Improve existing tests.
  • Improve documentation.

0.0.1+3 #

  • Update README and example.

0.0.1+2 #

  • Improve README.

0.0.1+1 #

  • Change the project structure.

0.0.1 #

  • Initial release.
3
likes
160
points
258
downloads
screenshot

Publisher

verified publisherkaboc.cc

Weekly Downloads

Utility widgets for Pot in Flutter, automatically managing the lifecycle of pots and the objects they hold based on the widget lifecycle.

Repository (GitHub)
View/report issues

Topics

#dependency-injection

Documentation

API reference

License

MIT (license)

Dependencies

flutter, pot

More

Packages that depend on pottery