syncx 0.1.9 copy "syncx: ^0.1.9" to clipboard
syncx: ^0.1.9 copied to clipboard

syncx is a lightweight, flexible Flutter state management library with notifiers and reactive UI updates, inspired by provider, bloc, and riverpod.

0.1.9 #

  • BREAKING CHANGE: Modified builder callback signatures from (context, state) to (state, child) for all widgets (NotifierBuilder, NotifierConsumer, AsyncNotifierBuilder, AsyncNotifierConsumer). This change improves consistency and removes unnecessary context parameter.
  • Feature: Added new onUpdate lifecycle API for notifiers to handle state changes and side effects.
  • Feature: Enhanced async widgets with .withData constructors for cleaner, more readable async state handling.
  • Feature: Improved AsyncNotifierBuilder, AsyncNotifierConsumer, and AsyncNotifierListener with convenient APIs.
  • Enhancement: Better type safety and reduced boilerplate for async state management.
  • Internal: Performance improvements and code optimizations.

Migration Guide: Update your builder callbacks from:

// Old API (0.0.x)
NotifierBuilder<MyNotifier, MyState>(
  builder: (context, state) => Text('$state'),
)

// New API (0.1.0+)
NotifierBuilder<MyNotifier, MyState>(
  builder: (state, child) => Text('$state'),
)

0.0.97 #

  • Fix: Resolved minor bugs
  • Features: New Async notifier API's setLoading, setError and setData.

0.0.93 #

  • Added and expanded documentation for async widgets (AsyncNotifierBuilder, AsyncNotifierConsumer, AsyncNotifierListener) and core async state model(AsyncState).
  • Updated README: clarified async state handling, added examples for new async widgets, and explained their relationship to sync widgets.
  • Fix: Notifier builder bug

0.0.83 #

  • Updated: Description.

0.0.82 #

  • Improved documentation and made minor formatting adjustments.

0.0.81 #

  • Improved documentation and made minor formatting adjustments.

0.0.8 #

  • Updated: Documentation.

0.0.7 #

  • Updated: Documentation patch.

0.0.6 #

  • Updated: Documentation for clarity and completeness, including improved usage examples and API explanations.

0.0.5 #

  • Updated: Example

0.0.4 #

  • Fix: Format

0.0.3 #

  • Lowered Dart SDK minimum version to >=2.17.0 for broader compatibility with more Flutter projects.
  • Updated pubspec and documentation to reflect compatibility improvements.

0.0.2 #

  • Improved async state handling: AsyncNotifier now supports async onInit returning a Future.
  • Updated documentation and README for clarity and conciseness.
  • Example app refactored for modularity and better demonstration of both sync and async notifiers.
  • Minor API and doc improvements for lifecycle mixins and async state.

0.0.1 #

  • Initial release of SyncX.
  • Notifier-based state management for Flutter.
  • BaseNotifier and Notifier classes for state logic.
  • NotifierRegister for easy provider integration.
  • NotifierBuilder for rebuilding UI on state changes.
  • NotifierListener for side-effect listening.
  • NotifierConsumer for combined build and listen.
  • Fine-grained rebuild/listen control with buildWhen and listenWhen.
  • Full documentation and usage examples.
  • MIT License.
2
likes
160
points
57
downloads

Publisher

verified publishersidha6th.online

Weekly Downloads

syncx is a lightweight, flexible Flutter state management library with notifiers and reactive UI updates, inspired by provider, bloc, and riverpod.

Repository (GitHub)
View/report issues

Topics

#state-management #notifier #reactive #state #state-management-library

Documentation

Documentation
API reference

License

MIT (license)

Dependencies

flutter, provider

More

Packages that depend on syncx