state_groups 0.3.1 copy "state_groups: ^0.3.1" to clipboard
state_groups: ^0.3.1 copied to clipboard

outdated

State management for the rest of us. State_groups is an easy way of managing state. In fact it doesn't manage state at all, it's stateless and only focuses on messaging.

0.3.1 #

  • Added SyncState2<T> which is now the preferred method (legacy method will still work).
  • Updated readme and added associated tests

0.3.0 #

  • Added the onlyOneAllowed and queueMessages parameters to StateGroup<T>
  • BREAKING removed errorFunction in SyncState<T>
  • Updated readme with SyncStateBuilder<T>

0.2.1 #

  • Added SyncStateBuilder which allows you to use state_groups without making a custom widget
  • Upgraded to Dart 2.17

0.2.0 #

  • Updated to Flutter 3
  • Removed the ! operator in WidgetsBinding.instance! because it is no necessary in Flutter 3

0.1.5 #

  • Have to call WidgetsBinding.instance!.scheduleFrame() after WidgetsBinding.instance!.addPostFrameCallback() otherwise there's no guarantee the scheduled command is actually run

0.1.4 #

  • onNotify() should have a return type of void not null

0.1.3 #

  • Now you can make state groups run custom logic when activated

0.1.2 #

  • Updates to documentation and added example

0.1.1 #

  • The argument to notifyAll() should actually be optional

0.1.0 #

  • BREAKING You can now pass custom message types to state groups (not just int)

0.0.1 #

  • Initial release
7
likes
0
points
4
downloads

Publisher

unverified uploader

Weekly Downloads

State management for the rest of us. State_groups is an easy way of managing state. In fact it doesn't manage state at all, it's stateless and only focuses on messaging.

Repository (GitLab)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on state_groups