搜索插件、代码仓与 APP 分类

google_nav_bar 封面
插件详情v5.0.7

google_nav_bar

一个现代的谷歌风格导航栏,可作为底部导航栏或标签栏使用,设计严格遵循 Dribbble 上 Cuberto 的 UI/UX 风格。

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
3.4万
喜欢数
1690
Pub 分数
140

安装插件

flutter pub add google_nav_bar

插件介绍

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

一个现代且视觉上吸引人的导航栏,灵感来自 Google 的设计语言和 Dribbble 上的 Cuberto UI/UX 概念。它可作为底部导航栏或标签栏使用,具备平滑动画、可自定义颜色和响应式布局。专为 Flutter 构建,支持 Android、iOS、Web、macOS、Windows 和 Linux 多个平台。该包强调简洁美观的外观和直观的用户交互,非常适合需要精致导航体验的应用程序。

适合场景

  • 移动应用底部导航
  • Web 应用程序标签式界面
  • 跨平台 Flutter 应用
  • 现代UI设计实现
  • 可自定义的导航栏

主要特点

  • 谷歌启发的设计
  • 流畅的动画
  • 多平台支持
  • 可自定义的颜色和图标
  • 响应式布局
  • 与 Flutter 的轻松集成

适合对象

  • 寻求 Material Design 美学的开发者
  • 需要优雅底部导航的应用
  • 注重设计的 Flutter 项目
  • UI/UX 爱好者
  • 快速原型设计

使用建议

  • 仅限导航使用场景
  • 需要手动管理图标
  • 可能需要额外的样式来处理复杂布局
  • 不适合用于顶级导航栏
  • 依赖外部设计的一致性

原始 README

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

google_nav_bar

    

A modern google style nav bar for flutter.

google_nav_bar

GoogleNavBar is a Flutter widget designed by Aurelien Salomon and developed by sooxt98.

Getting Started

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

...
dependencies:
  google_nav_bar: ^5.0.7
  

Now in your Dart code, you can use:

import 'package:google_nav_bar/google_nav_bar.dart';

Usage

Style your tab globally with GNav's attribute, if you wish to style tab separately, use GButton's attribute

GNav(
  rippleColor: Colors.grey[800], // tab button ripple color when pressed
  hoverColor: Colors.grey[700], // tab button hover color
  haptic: true, // haptic feedback
  tabBorderRadius: 15, 
  tabActiveBorder: Border.all(color: Colors.black, width: 1), // tab button border
  tabBorder: Border.all(color: Colors.grey, width: 1), // tab button border
  tabShadow: [BoxShadow(color: Colors.grey.withOpacity(0.5), blurRadius: 8)], // tab button shadow
  curve: Curves.easeOutExpo, // tab animation curves
  duration: Duration(milliseconds: 900), // tab animation duration
  gap: 8, // the tab button gap between icon and text 
  color: Colors.grey[800], // unselected icon color
  activeColor: Colors.purple, // selected icon and text color
  iconSize: 24, // tab button icon size
  tabBackgroundColor: Colors.purple.withOpacity(0.1), // selected tab background color
  padding: EdgeInsets.symmetric(horizontal: 20, vertical: 5), // navigation bar padding
  tabs: [
    GButton(
      icon: LineIcons.home,
      text: 'Home',
    ),
    GButton(
      icon: LineIcons.heart_o,
      text: 'Likes',
    ),
    GButton(
      icon: LineIcons.search,
      text: 'Search',
    ),
    GButton(
      icon: LineIcons.user,
      text: 'Profile',
    )
  ]
)

View the example folder

There are 4 different use case included in the /example directory, go try it out!

所属分类

源码仓库

使用此插件的项目