跳到正文
GitHub · 灵魂体仓库·· 20 天前AI 评分32

esenmx/collection_notifiers:Flutter 响应式集合通知器

esenmx/collection_notifiers

来源与原文

GitHub · 灵魂体仓库

发布时间:(北京时间)

阅读原始来源 · github.com ↗
完整链接与内容说明

https://github.com/esenmx/collection_notifiers

本站目前仅有 AI 导读与摘要,未展示原文正文;技术细节、代码和完整结论请查看原始来源。

AI 导读

GitHub 仓库 esenmx/collection_notifiers 为 Flutter 提供 List / Set / Map / Queue 的响应式通知器(ListNotifier、SetNotifier、MapNotifier、QueueNotifier),支持原地修改、仅在集合真正变化时触发 notifyListeners() 重建,并配套 flutter_hooks 的 useListNotifier 等 hooks 实现一行接入组件。它不是状态容器也不是深度响应式,可搭配 Provider 或 Riverpod(ChangeNotifierProvider 已移至 legacy.dart)使用,batch 与 assignAll 可将多次变更合并为一次通知。

来源:GitHub · 灵魂体仓库 · github.com