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

fade_scroll_app_bar 封面
套件詳情v0.0.7

fade_scroll_app_bar

您可以建立一個大型的 appbar,並透過滑動來實現平滑的漸變效果。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
572
喜歡數
40
Pub 分數
130

安裝套件

flutter pub add fade_scroll_app_bar

套件介紹

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

fade_scroll_app_bar 套件讓開發者能夠建立一個在使用者向下捲動時平滑淡出的大應用程式欄位,提升視覺吸引力與使用者體驗。它提供無縫過渡效果,非常適合現代沉浸式介面。此套件相容於多個平台,包含 Android、iOS、Web、macOS、Windows 與 Linux,使其適用於跨平台應用程式。透過 Flutter pub add 進行最少設定,即可輕鬆整合至現有專案。對於需要維持簡潔介面的長滾動內容應用來說,特別實用。

適用情境

  • 滾動內容與動態應用欄
  • 創建沉浸式使用者介面體驗
  • 增強移動和網頁應用中的視覺過渡效果
  • 設計簡潔的導航欄
  • 為長清單實現響應式應用欄
  • 透過流暢的動畫提升使用者參與度

主要特色

  • 滾動時的平滑漸隱效果
  • 支援大型應用欄
  • 跨平台相容性
  • 與 Flutter 的輕鬆整合
  • 可自定外觀
  • 內建動畫處理

適合對象

  • 移動和網頁應用開發者
  • 尋求動態介面的UI/UX設計師
  • 需要優雅滾動效果的專案
  • 開發內容密集型應用的開發者
  • 專注於打造精緻使用者體驗的團隊
  • Flutter 初學者探索進階組件

使用建議

  • 可能影響低階裝置的效能
  • 需要仔細的樣式設定以匹配設計主題
  • 超出淡入淡出行為之外的自訂功能有限
  • 不適用於靜態或非滾動版面
  • 最佳搭配可滾動內容,例如清單或滑塊
  • 依賴於 ScrollController 的正確實現

原始 README

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

Fade Scroll App Bar

With this package, you can create a large appbar and make a smooth fade effect by swiping.

Features

App Screenshot 0 App Screenshot 1 App Screenshot 2

Usage

First you should create ScrollController.

  final ScrollController _scrollController = ScrollController();

And adding in it.

FadeScrollAppBar(
        scrollController: _scrollController,
        appBarLeading: Icon(Icons.flutter_dash_outlined),
        appBarTitle: Text('Cool App Bar'),
        appBarForegroundColor: Colors.amber,
        pinned: true,
        fadeOffset: 120,
        expandedHeight: 250,
        backgroundColor: Colors.white,
        fadeWidget: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          crossAxisAlignment: CrossAxisAlignment.start,
          children: [
            Text("Really Good App Bar",
                style: Theme.of(context).textTheme.headline2?.copyWith(
                      color: Colors.black,
                    )),
          ],
        ),
        bottomWidgetHeight: 40,
        bottomWidget: Row(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            Chip(
              label: Text("Great"),
              backgroundColor: Colors.amber,
              side: BorderSide(
                color: Colors.white,
                width: 1,
              ),
            ),
            SizedBox(width: 10),
            Chip(
              label: Text("App Bar"),
              backgroundColor: Colors.amber,
              side: BorderSide(
                color: Colors.white,
                width: 1,
              ),
            ),
          ],
        ),
        child: ListView.builder(
          itemCount: 100,
          itemBuilder: (BuildContext context, int index) {
            return Padding(
              padding: const EdgeInsets.all(8.0),
              child: Container(
                height: 100,
                width: 300,
                color: Colors.blue,
              ),
            );
          },
        ),
      ),

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。