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

delayed_display 封面
套件詳情v2.0.0

delayed_display

一個可讓您在延遲後顯示子元件,並具有美觀的淡入淡出與滑動動畫的組件。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
1.2萬
喜歡數
489
Pub 分數
160

安裝套件

flutter pub add delayed_display

套件介紹

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

delayed_display 套件提供了一個小組件,可延遲其子組件的顯示,並帶有平滑的漸變與滑動動畫。非常適合在 Flutter 應用中創造定時視覺效果,透過引入細膩的過渡來提升使用者體驗。此元件容易整合,支援所有主要平台,包含行動裝置、網頁與桌面端。它支援自訂延遲時間與動畫曲線,適用於啟動畫面、引導流程,或任何需要定時內容揭露的場景。

適用情境

  • 引導頁面動畫
  • 啟動畫面過渡
  • 定時UI元素揭示
  • 載入狀態指示器
  • 動畫歡迎訊息

主要特色

  • 可自訂的延遲時長
  • 平滑的漸隱漸現與滑動動畫
  • 跨平台支援
  • 簡單的 API 結合
  • 可設定的動畫曲線
  • 支援空值安全性

適合對象

  • 尋求定時UI動畫的開發者
  • 設計師提升應用入門體驗
  • 需要細微視覺反饋的應用程式
  • 具有動畫啟動畫面的專案
  • Flutter 初學者探索過渡效果

使用建議

  • 如果過度使用,可能會影響效能
  • 需要仔細掌握時機以獲得最佳使用者體驗
  • 僅限基本動畫類型
  • 不適合複雜的互動序列
  • 動畫行為在不同平台之間可能有微小差異

原始 README

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

delayed_display

A widget that enables you to display a child after a delay and with beautiful fading and sliding animation.

examples

How does it works

All you have to do is to use the widget DelayedDisplay like this for example :

DelayedDisplay(
  delay: Duration(seconds: 1),
  child: Text(
    "Hello",
    style: TextStyle(
      fontWeight: FontWeight.bold,
      fontSize: 35.0,
      color: Colors.white,
    ),
  ),
),

And ... That's all ! It will automatically handle fading and sliding animation and will make the Text appear after 1 second delay.

Let's customize it !

Here are the accepted parameters :

Name Type Usage Required Default Value
child Widget The Widget that needs to appear yes null
delay Duration The duration before showing the widget (and animating it) false null
fadingDuration Duration The duration of the fading animation false const Duration(milliseconds: 800)
slidingCurve Curve The curve of the sliding animation false Curves.decelerate
slidingBeginOffset Offset The offset from where the sliding animation will start false const Offset(0.0, 0.35)

所屬分類

原始碼儲存庫

使用此套件的專案