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

pandabar 封面
套件詳情v0.1.2

pandabar

一個用於熊猫的精美底端導航列。Pandabar 專為新興的擬物化設計趨勢所設計。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
64
喜歡數
66
Pub 分數
140

安裝套件

flutter pub add pandabar

套件介紹

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

Pandabar 是一個視覺上吸引人的 Flutter 應用底部導航欄,靈感來自擬物化設計趨勢。它採用現代、柔軟邊緣的外觀,搭配微妙的陰影和漸變,提升使用者介面的吸引力。專為尋求標準導航欄替代方案的開發者設計,Pandabar 支援 Android、iOS、Web、macOS、Windows 和 Linux 多個平台。其可自定義的外觀使其能夠融入各種應用主題,同時保持流暢性能和直覺互動。透過簡單的 pub add 命令即可輕鬆整合該套件。

適用情境

  • 現代應用程式介面
  • Neumorphic主題設計
  • 跨平台移動和桌面應用
  • 增強的使用者導航
  • 跨裝置的視覺一致性

主要特色

  • Neumorphic design style
  • 可自定義的顏色和形狀
  • 跨平台相容性
  • 流暢的動畫
  • 透過 pub 輕鬆整合
  • 響應式佈局

適合對象

  • 注重設計的Flutter開發者
  • 面向現代美學的應用程式
  • 需要獨特導航UI的項目
  • 多平台部署
  • 創意UI實驗

使用建議

  • 可能需要額外的樣式來支援深色模式
  • 對低階設備的效能影響
  • 除了擬態主題外,自訂選項有限
  • 不太適合極簡主義或平面設計方法
  • 密集介面中潛在的視覺雜亂

原始 README

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

Pub

PandaBar

A fancy bottom navigation bar for pandas. Pandabar designed for new neumorphic design trend.

Preview PageView
BottomNavBar Gif Fix Gif
PandaBar
  • buttonColor - to change button color
  • buttonSelectedColor - to change button selected color
  • backgroundColor - the navigation bar's background color
  • buttonData - navigation items, required more than one item and less than 5
  • fabIcon - the navigation bar's fab button icon
  • fabColors - the navigation bar's fab button gradient colors
  • onFabButtonPressed - required to listen fab button is pressed
  • onChange - required to listen when a item is pressed it provide the selected item's id
PandaBarButtonData
  • id - the id of this item
  • icon - the icon of this item
  • title - the title of this item

Getting Started

Add the dependency in pubspec.yaml:

dependencies:
  ...
  pandabar: ^0.1.1

Basic Usage

class HomePage extends StatefulWidget {
  @override
  _HomePageState createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {

  String page = 'Grey';

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      extendBody: true,
      bottomNavigationBar: PandaBar(
        buttonData: [
          PandaBarButtonData(
            id: 'Grey',
            icon: Icons.dashboard,
            title: 'Grey'
          ),
          PandaBarButtonData(
            id: 'Blue',
            icon: Icons.book,
            title: 'Blue'
          ),
          PandaBarButtonData(
            id: 'Red',
            icon: Icons.account_balance_wallet,
            title: 'Red'
          ),
          PandaBarButtonData(
            id: 'Yellow',
            icon: Icons.notifications,
            title: 'Yellow'
          ),
        ],
        onChange: (id) {
          setState(() {
            page = id;
          });
        },
        onFabButtonPressed: () {

        },
      ),
      body: Builder(
        builder: (context) {

          switch (page) {
            case 'Grey':
              return Container(color: Colors.grey.shade900);
            case 'Blue':
              return Container(color: Colors.blue.shade900);
            case 'Red':
              return Container(color: Colors.red.shade900);
            case 'Yellow':
              return Container(color: Colors.yellow.shade700);
            default:
              return Container();
              
          }

        },
      ),
    );
  }
}

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。