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

dot_curved_bottom_nav 封面
插件详情v0.0.2

dot_curved_bottom_nav

令人惊叹的动画曲线形状环绕指示器导航栏。可调节颜色、背景颜色、动画曲线和动画持续时间。

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
169
喜欢数
51
Pub 分数
150

安装插件

flutter pub add dot_curved_bottom_nav

插件介绍

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

一个视觉效果出众的Flutter包,可在底部导航栏指示器下方创建一个动画曲线形状。它允许自定义曲线的颜色、背景颜色、动画曲线和持续时间,通过流畅动态的过渡提升用户体验。非常适合追求精致、交互式底部导航体验的现代应用程序界面。该包支持所有主要平台,包括Android、iOS、Web、macOS、Windows和Linux。

适合场景

  • 通过动画视觉反馈增强应用导航
  • 使用圆角底部栏创建现代用户界面
  • 使用动态动画自定义导航指示器
  • 通过视觉优化提升用户参与度
  • 跨多个平台设计响应式底部导航

主要特点

  • 导航指示器下方的动画曲线形状
  • 可自定义的颜色和背景颜色
  • 可调节的动画曲线和持续时间
  • 流畅的动画
  • 跨平台兼容性
  • 通过 pub add 命令轻松集成

适合对象

  • 寻求高级导航效果的UI设计师
  • 开发现代移动和网络应用的开发者
  • 需要动画底部导航的应用
  • 团队专注于视觉美化和交互性
  • 使用底部导航栏的 Flutter 开发人员

使用建议

  • 可能会影响低端设备的性能
  • 需要仔细调整动画设置
  • 仅限底部导航栏使用场景
  • 不适合简单或极简设计
  • 依赖于导航结构的正确实现

原始 README

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

Stunning Curved Bottom Navigation

Title Image

Preview

Preview

Optional Hide On Scroll

Preview

Getting Started

Add the dependency at pubspec.yaml:

dependencies:
  dot_curved_bottom_nav: ^0.0.1

Basic Usage

bottomNavigationBar: DotCurvedBottomNav(
    scrollController: _scrollController,
    hideOnScroll: true,
    indicatorColor: Colors.blue,
    backgroundColor: Colors.black,
    animationDuration: const Duration(milliseconds: 300),
    animationCurve: Curves.ease,
    selectedIndex: _currentPage,
    indicatorSize: 5,
    borderRadius: 25,
    height: 70,
    onTap: (index) {
    setState(() => _currentPage = index);
    },
    items: [
    Icon(
        Icons.home,
        color: _currentPage == 0 ? Colors.blue : Colors.white,
    ),
    Icon(
        Icons.notification_add,
        color: _currentPage == 1 ? Colors.blue : Colors.white,
    ),
    Icon(
        Icons.color_lens,
        color: _currentPage == 2 ? Colors.blue : Colors.white,
    ),
    Icon(
        Icons.person,
        color: _currentPage == 3 ? Colors.blue : Colors.white,
    ),
    ],
),

Properties

Property Description
scrollController Used to listen when the user scrolls and hides the bottom navigation
hideOnScroll Used to enable or disable hide on scroll behavior. (NOTE: scrollController must be provided when hideOnScroll is TRUE)
indicatorColor Color of the indicator displayed on currently selected item
backgroundColor Configures the background color of the bottom navigation
animationDuration Configures animation duration of hiding and indicator movement between items
animationCurve Configures curve of the animation of indicator movement and hide on scroll animation
selectedIndex Configures currently selected item / page
indicatorSize Configures the size of indicator displayed on top of the item
borderRadius Configures border radius of border DotCurvedBottomNav
height Configures height of DotCurvedBottomNav
onTap Configures callback function that is invoked whenever user taps on an item
items Configures list of items of bottom nav

TODO:

  1. Add More Indicator shapes e.g diamond shape with diamond cut out and more.

Contributions

Feel free to create an issue if you find a bug or if you need new features. Of course PRs are welcome!

If you want to connect with me on LinkedIn: Muzammil Hussain


If you like this work, please consider 👍 the package and ⭐ the repo. It is appreciated.

所属分类

源码仓库

使用此插件的项目

暂无相关数据。