Skip to content

mi6ock/baguette

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flutter one way state management. Inspired by redux.

flowchart LR
Widget --> SideEffect
SideEffect --> stores
subgraph stores
  Store...
end
stores --> SideEffect
stores ---> Widget

SideEffect --> Repository
Loading

Features

One way state management. Thin wrapper. Use StateNotifier and RiverPods.

Getting started

Add baguette and flutter_riverpod to Pubspec.yaml.

Usage

Store and SideEffect in the upper figure use this library.State extends BState, so that a Model is called from State. . State should call Model. State and Model uses freezed etc., Repository could be anything. Store subscription uses Riverpods. See the example for details.

Additional information

baguette
    git: https://github.com/mi6ock/baguette.git

About

Flutter one way state management. Thin wrapper.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors