FLUTTER ECOSYSTEM

listen

一個用於在純 Dart 中通知狀態變更給感興趣監聽器的套件。

最新版本
1.0.1
近 30 天下載
84.7萬
喜歡數
42
Pub 分數
160

Package Overview

根據套件公開資料產生的選型評估,僅供參考。

套件概覽

listen 套件提供了一種輕量級、純 Dart 的解決方案,用於通知已註冊監聽器的狀態變更。它能實現元件之間的高效通訊,而不依賴 Flutter 特定的組件或框架。設計簡單且具備優異效能,支援細粒度更新,非常適合用於需要最小開銷的狀態管理情境。此套件可在 Flutter 支援的所有主要平台運作,適用於跨平台應用中的共用邏輯。

適用情境
  • Real-time data updates
  • Cross-component communication
  • State management in libraries
  • Event-driven architecture
  • Decoupled UI and business logic
主要特色
  • Pure Dart implementation
  • Minimal performance overhead
  • Fine-grained change notifications
  • Supports multiple listeners
  • Platform-agnostic design
適合對象
  • 需要狀態通知的庫作者
  • 開發者避免框架依賴
  • 多平台共享程式碼庫
  • 簡單的狀態管理需求
使用建議
  • Not a full state management solution
  • Requires manual listener management
  • Limited built-in debugging tools
  • Best suited for non-UI state tracking
支援平台AndroidiOSLinuxmacOSWebWindows

安裝套件

flutter pub add listen

所屬分類

依賴

依賴清單 1 項

原始碼儲存庫

相關專案

暫無相關資料。

所在榜單