/state_notifier_sample6

state_notifier、freezedなどを試してみるリポジトリ

Primary LanguageDart

state_notifier_sample6 codecov

気になったFlutterの状態管理(state management)手法について試してみるサンプルリポジトリです(6に特に意味はありません)

主に使用したライブラリ

  • StateNotifier
  • Freezed
  • Provider
  • Firebase

特に参考にした資料

provider

https://pub.dev/packages/provider

  • 本リポジトリでは、v4.10.1-dev以上のバージョンを使用

    • BuildContextの static extension である context.select や context.read を使いたいため
  • Consumer

    • contextが取得できないタイミングで使う
  • Selector

    • クラスの一部のメンバーに対して更新をlistenする

state_notifier

https://github.com/TetsuFe/state_notifier_sample6/wiki/state_notifier

テスト

https://github.com/TetsuFe/state_notifier_sample6/wiki/%E3%83%86%E3%82%B9%E3%83%88tips

freezed

https://pub.dev/packages/freezed

https://github.com/TetsuFe/state_notifier_sample6/wiki/freezed

flutter web 関連

https://github.com/TetsuFe/state_notifier_sample6/wiki/Web%E9%96%A2%E9%80%A3%E3%81%AETips

github actions

https://github.com/TetsuFe/state_notifier_sample6/wiki/GitHub-Actions

その他

https://hachibeechan.hateblo.jp/entry/change-notifier-does-not-solve-anything-by-itselfs