搜索插件、代码仓与 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();
              
          }

        },
      ),
    );
  }
}

所属分类

源码仓库

使用此插件的项目

暂无相关数据。