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

connectivity_wrapper 封面
套件詳情v2.0.0

connectivity_wrapper

一個提供網路感知組件的新Flutter套件。它允許Flutter應用在未連接到網路或沒有連接時,為您的應用提供反饋。

AndroidiOSmacOSWindowsLinux
近 30 天下載
1200
喜歡數
157
Pub 分數
160

安裝套件

flutter pub add connectivity_wrapper

套件介紹

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

ConnectivityWrapper 是一個 Flutter 套件,提供網路感知的小部件,幫助應用程式動態回應連線狀態的變更。它讓開發者能在裝置離線或沒有網際網路連接時顯示適當的 UI 反饋。該套件將內容包裝在監控網路狀態的元件樹中,並根據目前的連線狀態觸發視覺更新,從而改善網路波動期間的使用者體驗。它支援多個平台,包括 Android、iOS、macOS、Windows 和 Linux。

適用情境

  • 顯示離線橫幅
  • 在連接中斷期間顯示加載狀態
  • 為依賴網路的操作提供反饋
  • 具有網路感知能力的 API 呼叫處理
  • 在間歇性連接期間改善使用者體驗

主要特色

  • 即時網路狀態監控
  • 可自定義的離線使用者介面
  • 自動重連檢測
  • 跨平台支援
  • 與現有小部件的簡單整合

適合對象

  • 需要即時網絡反饋的應用程式
  • 開發人員建構強大的離線體驗
  • 頻繁進行 API 互動的專案
  • 行動和桌面應用程式
  • 以使用者體驗為導向的應用開發

使用建議

  • Android 需要互聯網權限
  • 可能需要額外的錯誤處理
  • 不適用於背景網路檢查
  • 僅限UI層級的連接反饋
  • 依賴於底層連接外掛程式

原始 README

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

Nonstop Logo

NonStop

Digital Product Development Experts for Startups & Enterprises

About | Website

Flutter Forge Logo

All Contributors

A place where Flutter packages are crafted and built.

NonStop CLI generates a Melos-managed Flutter starter with SOLID-oriented boundaries, offline unit/widget tests, a strict 100% handwritten-runtime line-coverage gate and generated CI. Its template is verified by generating and building real applications, including minimal and optional-module configurations.

  • All shared packages are in the /packages directory
  • All plugins are in the /plugins directory
Packages
nonstop_cli
cli_core
timer_button
connectivity_wrapper
ns_firebase_utils
ns_utils
ns_intl_phone_input
dzod
html_rich_text
morse_tap
Plugins
contact_permission

🔗 Connect with NonStop

Stay connected and get the latest updates!

LinkedIn X.com Instagram YouTube [Email](mailto:contact@nonstopio.com)


⭐ Star us on GitHub if this helped you!

Analytics

Alt

Contributors

Ajay Kumar
Ajay Kumar

💻 🖋 📖 💡 🚧
rajan-nonstopio
rajan-nonstopio

💻
Add your contributions

所屬分類

依賴

依賴清單 2 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。