FLUTTER ECOSYSTEM

listen_it

Flutter 的响应式原语 - 可观察集合和强大的操作符。像使用 Streams 一样使用 ValueNotifiers。包含 ListNotifier、MapNotifier、SetNotifier。以前发布为 functional_listener。

最新版本
5.3.5
近 30 天下载
7300
喜欢数
13
Pub 分数
140

Package Overview

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

插件概览

ListenIt 是一个用于 Flutter 的响应式状态管理包,提供 ListNotifier、MapNotifier 和 SetNotifier 等可观察集合,使开发者能够像使用 Streams 一样操作 ValueNotifiers。它提供了强大的操作符来转换和组合数据流,促进函数式响应式编程风格。最初发布为 functional_listener,它通过极少的样板代码简化了状态更新和订阅。非常适合用于管理响应式 UI 中的动态数据。

适合场景
  • Real-time data synchronization
  • Dynamic list or map state management
  • Reactive UI updates with minimal code
  • Stream-like behavior for ValueNotifiers
  • Complex state transformations
主要特点
  • Observable collections (ListNotifier, MapNotifier, SetNotifier)
  • Stream-like operators for ValueNotifiers
  • Functional reactive programming model
  • Minimal boilerplate
  • Cross-platform support
适合对象
  • Developers seeking lightweight reactive state management
  • Projects requiring reactive collections
  • Teams familiar with functional programming patterns
  • Apps with frequent dynamic data updates
  • Flutter apps targeting multiple platforms
使用建议
  • May require learning reactive programming concepts
  • Best suited for moderate to complex state logic
  • Not ideal for simple static state
  • Performance impact with very large datasets
  • Limited documentation compared to mature alternatives
支持平台AndroidiOSWebmacOSWindowsLinux

安装插件

flutter pub add listen_it

所属分类

源码仓库

关联项目