搜尋套件、儲存庫與 APP 分類

套件詳情v1.0.1

listen

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

AndroidiOSLinuxmacOSWebWindows
近 30 天下載
242萬
喜歡數
44
Pub 分數
160

安裝套件

flutter pub add listen

套件介紹

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

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

適用情境

  • 即時資料更新
  • 跨組件通訊
  • 程式庫中的狀態管理
  • 事件驅動架構
  • 解耦的 UI 和業務邏輯

主要特色

  • 純 Dart 實現
  • 最小性能開銷
  • 細粒度變更通知
  • 支援多個監聽器
  • 平台無關設計

適合對象

  • 需要狀態通知的庫作者
  • 開發者避免框架依賴
  • 多平台共享程式碼庫
  • 簡單的狀態管理需求

使用建議

  • 並非完整的狀態管理解決方案
  • 需要手動管理監聽器
  • 有限的內建除錯工具
  • 最適合用於非UI狀態追蹤

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

Flutter Core Packages

Release Status Flutter CI Status

This repo is a companion to the flutter/flutter and flutter/packages repositiories. It contains the source code for Flutter's first-party packages (i.e., packages developed by the core Flutter team) that cannot depend on Flutter, generally because they are used by the flutter/flutter repository. Check the packages directory to see all packages.

These packages are also available on pub.

Issues

Please file any issues, bugs, or feature requests in the main flutter repo. Issues pertaining to this repository are labeled "package".

Contributing

If you wish to contribute a new package to the Flutter ecosystem, please see the documentation for developing packages. You can store your package source code in any GitHub repository (the present repo is only intended for packages developed by the core Flutter team). Once your package is ready you can publish to the pub repository.

If you wish to contribute a change to any of the existing packages in this repo, please review our contribution guide, and send a pull request.

Packages

These are the packages hosted in this repository:

Package Pub Points Usage Issues Pull requests
flutter_hook_config pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
flutter_template_images pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
listen pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
multicast_dns pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
mustache_template pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
standard_message_codec pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
vector_math pub package pub points downloads GitHub issues by-label GitHub pull requests by-label

所屬分類

依賴

依賴清單 1 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。

所在榜單