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

widget_loading 封面
套件詳情v0.4.0

widget_loading

一種簡單的方式,在尚無內容顯示時隱藏組件,同時需要載入動畫。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
536
喜歡數
94
Pub 分數
150

安裝套件

flutter pub add widget_loading

套件介紹

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

WidgetLoading 是一個 Flutter 套件,可簡化在內容尚未可用時顯示載入動畫的過程。它會自動隱藏主控件並顯示可自訂的載入指示器,確保在非同步操作期間提供流暢的使用者體驗。適用於資料取得或應用程式初始載入等情境,支援所有主要平台,包括 Android、iOS、Web、macOS、Windows 和 Linux。此套件輕量且易於整合,僅需最少的樣板程式碼。

適用情境

  • 在資料獲取期間顯示加載狀態
  • 在等待 API 回應時顯示佔位符
  • 改善應用初始載入時的使用者體驗
  • 用動畫指示器替換空狀態
  • 簡化小部件的條件渲染

主要特色

  • 主組件的自動隱藏
  • 可自定義的載入動畫
  • 所需設定最少
  • 跨平台相容性
  • 支援非同步作業
  • 簡潔、易讀的 API

適合對象

  • 尋求簡單加載狀態管理的開發者
  • 頻繁數據獲取的應用
  • 需要流暢過渡的UI
  • 初學者學習Flutter狀態處理
  • 致力於打造精緻載入體驗的項目

使用建議

  • 除了基本動畫外,自定義功能有限
  • 可能需要額外的樣式設定以支援複雜的使用者介面
  • 不適用於非異步載入情境
  • 依賴外部相依性以實現進階功能
  • 最好與其他狀態管理解決方案搭配使用

原始 README

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

Widget Loading

pub.dev github likes popularity pub points license

buy me a coffee

If you like this package, please leave a like there on pub.dev and star on GitHub.

Simple widgets for loading widget contents. It's an easy way to hide a widget when you have nothing to show and need a loading animation at the same time.

example1 example2

Easy Usage

Easy to use and highly customizable.

WiperLoading
WiperLoading(
  loading: loading,
  interval: interval,
  wiperDeformingFactor: deformingFactor,
  curve: curve,
  wiperBuilder: builder
  wiperWidth: wiperWidth,
  wiperColor: wiperColor,
  wiperBuilder: wiperBuilder,
  sizeCurve: sizeCurve,
  sizeDuration: sizeDuration,
  direction: wiperDirection,
  child: Padding(
    padding: const EdgeInsets.all(15.0),
    child: yourChild,
  ),
  ...
)

or

WiperLoading.future(future: futureOfYourWidget, ...)
CircularWidgetLoading
CircularWidgetLoading(
  loading: loading,
  child: yourChild,
  ...
)

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。