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

套件詳情v1.0.2+1

extended_navbar_scaffold

一個可擴展且帶浮動導航列的自訂 Scaffold

近 30 天下載
12
喜歡數
88
Pub 分數
40

安裝套件

flutter pub add extended_navbar_scaffold

套件介紹

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

一個可自訂的 Flutter Scaffold,擴展標準 Scaffold,具備可展開和浮動的底部導航列。它允許動態行為,例如展開導航列以顯示額外項目,或在捲動時隱藏它,從而增強具有複雜導航需求應用程式的使用者體驗。非常適合需要響應式和互動式底部欄的現代 UI。此套件輕量且能與現有 Flutter 專案無縫整合。

適用情境

  • 具有複雜底部導航的應用程式
  • 基於滾動的互動式導航欄
  • 可自定義的浮動導航介面
  • 透過可展開的導航欄提升使用者體驗
  • 現代移動應用設計

主要特色

  • 可擴展的底部導航欄
  • 浮動導航欄支援
  • 可自定義的動畫和行為
  • 與 Flutter Scaffold 的無縫整合
  • 輕量且容易實現

適合對象

  • 開發現代 Flutter 應用的開發者
  • 尋求互動式導航模式的設計師
  • 需要響應式底部欄的項目
  • 具有多個導航目的地的行動應用程式
  • 以使用者介面為重點的應用程式

使用建議

  • 有限的平台特定自訂
  • 無內建深色模式支援
  • 需要手動處理狀態管理
  • 未針對非常大的導航項目列表進行優化
  • 可能需要額外的樣式來處理複雜的佈局

原始 README

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

extended_navbar_scaffold

Pub Awesome Flutter

Custom Extended Scaffold

Custom Flutter widgets that makes Bottom Navigation Floating and can be expanded with much cleaner and easier way.

Installing

Add the following to your pubspec.yaml file:

dependencies:
  extended_navbar_scaffold: any

Creating

ExtendedNavigationBarScaffold(
  body: Container(
    color: Colors.deepOrange,
  ),
  elevation: 0,
  floatingAppBar: true,
  appBar: AppBar(
    shape: kAppbarShape,
    leading: IconButton(
      icon: Icon(
        EvaIcons.person,
        color: Colors.black,
      ),
      onPressed: () {},
    ),
    title: Text(
      'Extended Scaffold Example',
      style: TextStyle(color: Colors.black),
    ),
    centerTitle: true,
    backgroundColor: Colors.white,
  ),
  navBarColor: Colors.white,
  navBarIconColor: Colors.black,
  moreButtons: [
    MoreButtonModel(
      icon: MaterialCommunityIcons.wallet,
      label: 'Wallet',
      onTap: () {},
    ),
    MoreButtonModel(
      icon: MaterialCommunityIcons.parking,
      label: 'My Bookings',
      onTap: () {},
    ),
    MoreButtonModel(
      icon: MaterialCommunityIcons.car_multiple,
      label: 'My Cars',
      onTap: () {},
    ),
    MoreButtonModel(
      icon: FontAwesome.book,
      label: 'Transactions',
      onTap: () {},
    ),
    MoreButtonModel(
      icon: MaterialCommunityIcons.home_map_marker,
      label: 'Offer Parking',
      onTap: () {},
    ),
    MoreButtonModel(
      icon: FontAwesome5Regular.user_circle,
      label: 'Profile',
      onTap: () {},
    ),
    null,
    MoreButtonModel(
      icon: EvaIcons.settings,
      label: 'Settings',
      onTap: () {},
    ),
    null,
  ],
  searchWidget: Container(
    height: 50,
    color: Colors.redAccent,
  ),
  // onTap: (button) {},
  // currentBottomBarCenterPercent: (currentBottomBarParallexPercent) {},
  // currentBottomBarMorePercent: (currentBottomBarMorePercent) {},
  // currentBottomBarSearchPercent: (currentBottomBarSearchPercent) {},
  parallexCardPageTransformer: PageTransformer(
    pageViewBuilder: (context, visibilityResolver) {
      return PageView.builder(
        controller: PageController(viewportFraction: 0.85),
        itemCount: parallaxCardItemsList.length,
        itemBuilder: (context, index) {
          final item = parallaxCardItemsList[index];
          final pageVisibility =
              visibilityResolver.resolvePageVisibility(index);
          return ParallaxCardsWidget(
            item: item,
            pageVisibility: pageVisibility,
          );
        },
      );
    },
  ),
);

Screenshots

Implementation

Implementation

Widget Demo

Demo

所屬分類

依賴

依賴清單 1 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。