provider_statekit

The state/controller/ViewModel basic toolkit under the Provider architecture.

Features

  • Provide four base classes: BaseState, BaseStateController, BaseStateViewModel, and BaseStateScope, to help you quickly build modular state management based on Provider.
  • Support unified asynchronous initialization, error handling, event subscription and automatic injection, eliminating the need to repeatedly write template code.
  • The design is flexible, allowing you to extend subclasses as needed in new projects or existing projects to implement domain business logic.

Installation

Add the dependency in pubspec.yaml:

dependencies:
  provider_statekit: ^1.0.0

Then run:

flutter pub get

Usage

Please check the example.

License

The project is under the MIT license.

Libraries

provider_statekit