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

cupertino_tabbar 封面
套件詳情v2.0.0

cupertino_tabbar

一個高度可自訂且簡單的小部件,用於實現 iOS 13 樣式的標籤欄。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
2470
喜歡數
72
Pub 分數
140

安裝套件

flutter pub add cupertino_tabbar

套件介紹

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

一個可自訂且簡單的 Flutter 小部件,可複製 iOS 13 風格的標籤欄,提供跨平台的原生體驗。它支援平滑動畫、自訂圖示、標籤和樣式選項,以符合現代 iOS 設計原則。該小部件輕量且易於整合,非常適合希望在 Android 和其他平台保持一致 iOS 外觀的應用程式。對於需要簡潔、極簡標籤介面的導航密集型應用尤為實用。

適用情境

  • iOS 風格的導航在跨平台應用中
  • 帶有動畫過渡的自訂標籤欄
  • 簡單而優雅的底部導航
  • 針對 iOS 使用者體驗一致性應用
  • 用增強視覺效果的標籤欄取代預設標籤欄

主要特色

  • iOS 13 設計模仿
  • 高度可自訂的外觀
  • 流暢的動畫支援
  • 支援圖示和標籤
  • 跨平台相容性
  • 與現有 Flutter 專案的輕鬆整合

適合對象

  • 尋求原生 iOS 使用者介面元件的開發人員
  • 需要極簡標籤導航的項目
  • 跨平台應用,以iOS設計為重點
  • 注重視覺一致性的團隊
  • Flutter 初學者探索標籤欄自訂

使用建議

  • 僅限iOS 13美學風格
  • 可能需要為非iOS平台添加額外的樣式
  • 不適用於複雜的標籤頁佈局
  • 最佳搭配使用 CupertinoTheme
  • 使用多個標籤頁時可能產生效能影響

原始 README

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

cupertino_tabbar

Cosmos Software

Pub License

A highly customisable and simple widget for having iOS 13 style tab bars.

It is highly recommended to read the documentation and run the example project on a real device to fully understand and inspect the full range of capabilities.

Media | Description | Installation | How-to-Use

Recent

  • [useShadow] is added. If set to true, a shadow will be displayed under the indicator that is much more similar to the actual iOS version. See Media for examples.

  • [allowScrollable], [fittedWhenScrollable], [animateWhenScrollable], [animateUntilScrolled], [outerHorizontalPadding] and [outerVerticalPadding] are added. These all work towards making an easy-to-use scrollable tab bar. Please refer to the documentation and the examples for instructions and see Media for examples.


Warning

  • Variables previously named as [horizontalPadding], [verticalPadding] and [expand] are now named [innerHorizontalPadding], [innerVerticalPadding] and [allowExpand].

Media

Watch on Youtube:

v1.1.0

v1.0.0





Description

This is a highly customisable and simple widget for having iOS 13 style tab bars.

How-to-Use

Simply create a CupertinoTabBar as shown in the example:

CupertinoTabBar(
  Colors.black                  //_backgroundColor
  Colors.white                  //_foregroundColor
  [...],                        //_widgets
  cupertinoTabBarValueGetter,   //_valueGetter
  (int index) {                 //_onTap
    setState(() {
      cupertinoTabBarValue = index;
    });
  },
  {Key key,
  useSeparators             : false,
  innerHorizontalPadding    : 10.0,
  innerVerticalPadding      : 10.0,
  borderRadius              : const BorderRadius.all(const Radius.circular(10.0)),
  curve                     : Curves.linearToEaseOut,
  duration                  : const Duration(milliseconds: 350),
  allowExpand               : false,
  allowScrollable           : false,
  fittedWhenScrollable      : false,
  animateWhenScrollable     : false,
  animateUntilScrolled      : false,
  outerHorizontalPadding    : 10.0,,
  outerVerticalPadding      : 0})
)

int cupertinoTabBarValue = 0;
int cupertinoTabBarValueGetter() => cupertinoTabBarValue;

Further Explanations:

For a complete set of descriptions for all parameters and methods, see the documentation.

  • Do not set both [allowExpand] and [allowScrollable] to true.

Notes

Any help, suggestion or criticism is appreciated!

Cheers.





所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。