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

delayed_widget 封面
套件詳情v1.1.2

delayed_widget

一個簡單易用的 Flutter 套件,讓小部件在建立後立即以流暢的方式顯示出來。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
908
喜歡數
32
Pub 分數
140

安裝套件

flutter pub add delayed_widget

套件介紹

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

delayed_widget 套件是輕量級的 Flutter 解決方案,可在建立後實現順暢、定時的元件顯示。它簡化了為元件渲染加入延遲的過程,讓過渡看起來更自然且精緻。適用於動畫或載入序列,讓開發者能以最少的程式碼控制元件何時可見。此套件支援所有主要平台,並可無縫整合至現有的 Flutter 專案中。

適用情境

  • 流暢的UI過渡
  • 延遲加載指示器
  • 動畫進入效果
  • 引導畫面
  • 漸進式內容顯示
  • 載入狀態管理

主要特色

  • 簡單的延遲設定
  • 最小化樣板程式碼
  • 跨平台支援
  • 輕鬆整合
  • 流暢的視覺過渡
  • 靈活的時間控制

適合對象

  • 初學者 Flutter 開發者
  • UI/UX 增強專案
  • 以動畫為重點的應用
  • 具備漸進式內容載入的應用程式
  • 需要細微視覺反饋的專案

使用建議

  • 不適合複雜的動畫序列
  • 除了延遲時間之外,自定義選項有限
  • 可能需要額外處理動態延遲
  • 最適合用於簡單的 widget 顯示
  • 性能影響雖小但確實存在,實例數量眾多時更為明顯

原始 README

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

delayed_widget

A simple and easy to use flutter package, to make widgets show up in a smooth way as soon as it is created.

Gif

Gif

Gif

Add dependency
dependencies:
  delayed_widget: ^1.1.1
Easy to use
Scaffold(
    appBar: AppBar(
    title: Text('DelayedWidget Example'),
),
body: Center(
    child: DelayedWidget(
        delayDuration: Duration(milliseconds: 200),// Not required
        animationDuration: Duration(seconds: 1),// Not required
        animation: DelayedAnimations.SLIDE_FROM_BOTTOM,// Not required
        child: Container(
            width: 200,
            height: 200,
            color: Colors.red,
        ))),
    )
Attributes

enable: Enable/Disable animation
delayDuration: Set the delay time before start animation
animationDuration: Set the duration of animation
animation: Set the animation type

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。