cesium 2.0.0 copy "cesium: ^2.0.0" to clipboard
cesium: ^2.0.0 copied to clipboard

A lightweight state management framework using ValueNotifier and Listenable with built-in Dio HTTP resources, pagination, targeted rebuilds.

1.0.0 #

Initial release with the following features:

  • ComputedResource: a ValueNotifier that automatically reruns its computation when one of its dependencies changes.
  • FutureResource: a ValueNotifier that exposes the current state of a Future, making it easier to integrate asynchronous results into UI.
  • HttpResource: a ValueNotifier representing the state of a GET HTTP request for simpler UI integration.
  • PaginatedHttpResource: similar to HttpResource, but with built-in support for infinite-scroll pagination.
  • CesiumService: a base class for services that can be registered with the package's dependency helpers.
  • Extensions for Listenable and ValueNotifier to simplify UI code.
  • ManagedListenerMixin: a mixin for StatefulWidget that automatically removes added listeners during dispose().
  • Error logging: a centralized Cesium error API. Report errors with Cesium.logError(error) and register a handler with Cesium.setErrorHandler(...).

1.0.1 #

  • Added a NOTICE file for dependency license attribution (async, dio, Flutter).

1.1.0 #

  • Added a centralized CesiumHttpService with HTTP helpers and reset support for cleaner dependency injection and testing.
  • Introduced a shared HttpResourceBase to consolidate request execution, debounce handling, dependency reloading, and progress tracking.
  • Updated HttpResource and PaginatedHttpResource to use the new base flow while preserving pagination behavior and result accumulation.
  • Expanded the service management API with override/reset patterns to support testing and configuration flexibility.
  • Added focused coverage for initial loads, errors, dependency-triggered refreshes, and paginated requests.

1.1.1 #

  • Added inlineEnd to paginated http response so that when the user reaches an end it can display something
  • Added inlineStart to paginated http response so that widgets can be inserted at the start of the ListView.builder

1.1.2 #

  • Added documentation to all sections of the code

1.2.0 #

  • Added GUIDE.md as a comprehensive guide of the framework
  • Made urlBuilder in PaginatedHttpResource take a page parameter

1.2.1 #

  • Made description better for pub.dev search

1.2.2 #

  • Added optimistic value in FutureResource.runNewFuture
  • Added the ability to retry on error in FutureResource
  • Added a prameter for max retry count in http resource with exponential backoff

1.2.3 #

  • Changed description

1.3.0 #

  • Added topics
  • Added ability to override dio instance in CesiumHttpService
  • Added ActionResource to handle async actions cleanly

2.0.0 #

  • Moved all constructors to have named parameters
  • Added manage function in ManagedListenerMixin
  • Added onSuccess and onFailure to ActionResource
2
likes
160
points
430
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A lightweight state management framework using ValueNotifier and Listenable with built-in Dio HTTP resources, pagination, targeted rebuilds.

Repository (GitHub)
View/report issues

Topics

#reactive #ui #async #state-management

License

Unlicense (license)

Dependencies

async, dio, flutter

More

Packages that depend on cesium