搜索分类、插件与代码仓

cool_nav 封面
插件详情v0.1.1

cool_nav

一组真正出色且易于使用的底部导航栏。

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
88
喜欢数
54
Pub 分数
150

安装插件

flutter pub add cool_nav

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

Cool Nav 是一个 Flutter 包,提供了一系列视觉上吸引人且易于实现的底部导航栏。该包设计注重简洁与美观,提供可自定义、带动画效果且响应式的导航组件,适用于跨多个平台的现代应用程序。该包可无缝集成到 Flutter 项目中,并支持 Android、iOS、Web、macOS、Windows 和 Linux。通过最少的设置和丰富的设计选项,Cool Nav 在不牺牲性能或开发人员便利性的情况下提升用户体验。

适合场景

  • 移动应用导航
  • Web 应用程序仪表板
  • 跨平台桌面应用
  • 可自定义的底部标签
  • 增强的用户界面,带有动画效果
  • 简单集成到现有项目中

主要特点

  • 预设的精美导航样式
  • 通过参数轻松自定义
  • 流畅的动画和过渡
  • 多平台支持
  • 轻量且高效
  • 最小化样板代码

适合对象

  • Flutter 开发者寻求快速的 UI 增强
  • 需要一致底部导航的项目
  • 注重设计的应用程序
  • 初学者学习Flutter导航
  • 针对多个平台的应用

使用建议

  • 仅限底部导航
  • 可能需要额外的样式来实现复杂布局
  • 依赖外部依赖项进行动画
  • 不适合非底部导航模式
  • 最适合简单到中等复杂度的导航需求

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

cool_nav

Pub Version (including pre-releases) Github Action Status

A collection of really awesome, easy to use BottomNavigationBars

Getting Started

Add this to your package's pubspec.yaml file:

---
dependencies:
  cool_nav: ^0.1.1

Now in your Dart code, you can use:

import 'package:cool_nav/cool_nav.dart';

List of Bottom Navigation Bars:

Spotlight Bottom Navigation Bar

Spotlight Bottom Navigation Bar

Based on design made by Sanchita Agarwal.

An easy to use and customizable Bottom Navigation Bar. You can customize the colors as well provide a custom Gradient for the spotlight.

Usage

Scaffold(
    // ...
    bottomNavigationBar: SpotlightBottomNavigationBar(
        items: [
          SpotlightBottomNavigationBarItem(icon: Icons.smartphone),
          SpotlightBottomNavigationBarItem(icon: Icons.laptop_mac),
          SpotlightBottomNavigationBarItem(icon: Icons.desktop_mac),
        ],
        currentIndex: currentIndex,
        selectedItemColor: Colors.cyan,
        onTap: _onTap,
    ),
)
Flip Box Bottom Navigation Bar

Flip Box Bottom Navigation Bar

Based on design made by dannniel.

An easy to use and customizable Bottom Navigation Bar. You can customize the selected and unselected Icons and background Colors for the tiles.

Usage

Scaffold(
    // ...
    bottomNavigationBar: FlipBoxNavigationBar(
          currentIndex: currentIndex,
          verticalPadding: 20.0,
          items: <FlipBoxNavigationBarItem>[
            FlipBoxNavigationBarItem(
              name: 'Tasks',
              selectedIcon: Icons.done_all,
              selectedBackgroundColor: Colors.deepPurpleAccent[200],
              unselectedBackgroundColor: Colors.deepPurpleAccent[100],
            ),
            FlipBoxNavigationBarItem(
              name: 'People',
              selectedIcon: Icons.person,
              unselectedIcon: Icons.person_outline,
              selectedBackgroundColor: Colors.indigoAccent[200],
              unselectedBackgroundColor: Colors.indigoAccent[100],
            ),
            FlipBoxNavigationBarItem(
              name: 'Mail',
              selectedIcon: Icons.mail,
              unselectedIcon: Icons.mail_outline,
              selectedBackgroundColor: Colors.blueAccent[200],
              unselectedBackgroundColor: Colors.blueAccent[100],
            ),
          ]
    ),
)

Refer here for an example.

More Awesome Navigation Bars will be added in the future.

Examples

View the example folder to see more examples.

所属分类

源码仓库

使用此插件的项目

暂无相关数据。