FLUTTER ECOSYSTEM

built_redux

一个用 Dart 编写的状态管理库,强制使用不可变性

最新版本
8.0.10
近 30 天下载
9400
喜欢数
10
Pub 分数
130

Package Overview

基于插件公开资料生成的选型评价,仅供参考。

插件概览

Built Redux 是一个用于 Flutter 和 Dart 的状态管理库,通过使用不可变数据结构来强制实现不可变性。它提供了一种受 Redux 启发的可预测、可扩展的架构,重点关注类型安全和编译时正确性。Built Redux 与 built_value 包无缝集成,以确保数据不可变性,从而减少因意外状态变更引起的错误。该库支持所有主要平台,包括 Android、iOS、Web、macOS、Windows 和 Linux。该库提倡清晰的关注点分离,非常适合需要强大状态处理的大规模应用程序。

适合场景
  • Large-scale Flutter applications
  • Applications requiring strict immutability
  • Team-based development with clear state patterns
  • Complex state logic with time-travel debugging
主要特点
  • Immutability enforcement
  • Integration with built_value
  • Type-safe state updates
  • Predictable state flow
  • Support for time-travel debugging
  • Cross-platform compatibility
适合对象
  • Developers prioritizing code safety
  • Teams building complex state-heavy apps
  • Projects using immutable data patterns
  • Applications needing rigorous state testing
使用建议
  • Steeper learning curve for beginners
  • Requires built_value setup
  • More boilerplate than simple state solutions
  • Less suitable for small or prototype apps
支持平台AndroidiOSWebmacOSWindowsLinux

安装插件

flutter pub add built_redux

所属分类

关联项目

暂无相关数据。