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

stylish_bottom_bar 封面
插件详情v1.1.1

stylish_bottom_bar

一组时尚的底部导航栏,如动画底部栏和气泡底部栏,适用于 Flutter。

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
8190
喜欢数
331
Pub 分数
150

安装插件

flutter pub add stylish_bottom_bar

插件介绍

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

一个 Flutter 包,提供视觉上吸引人的底部导航栏,包括动画和气泡式设计。它通过流畅的过渡和现代美学增强用户界面,非常适合希望获得独特导航体验的应用程序。该包支持多个平台,并可无缝集成到现有的 Flutter 项目中。通过可自定义选项,开发者可以轻松实现引人入胜的底部栏,而无需大量编码。非常适合追求精致、现代外观的移动和 Web 应用。

适合场景

  • 通过动画效果增强应用导航
  • 使用气泡风格底部栏创建独特的用户界面
  • 通过视觉反馈提升用户参与度
  • 为跨平台应用设计现代界面
  • 为底部导航添加动态过渡
  • 使用最少代码自定义导航外观

主要特点

  • 动画底部栏过渡
  • 气泡式底部导航设计
  • 跨平台支持(Android、iOS、Web、macOS、Windows、Linux)
  • 与 Flutter 项目的轻松集成
  • 可自定义的颜色和动画
  • 轻量且高性能的实现

适合对象

  • 寻求现代 UI 组件的 Flutter 开发人员
  • 需要引人注目的导航的应用程序
  • 以设计为重点的移动和网络应用
  • 希望快速提升用户界面的开发者
  • 强调用户体验和视觉吸引力的项目
  • 寻找即用型、已样式化的导航栏的团队

使用建议

  • 可能需要为复杂主题添加额外的样式
  • 超出所提供动画类型的定制功能有限
  • 依赖于Flutter版本兼容性
  • 大量动画可能带来的性能影响
  • 不适合极简设计偏好
  • 需要理解Flutter的widget系统才能进行高级修改

原始 README

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

Hello stylish_bottom_bar Version

A collection of stylish bottom navigation bars like animated bottom bar and bubble bottom bar for flutter.

Table of contents

⭐ Installing

dependencies:
    stylish_bottom_bar: ^1.2.0-beta

⚡ Import

import 'package:stylish_bottom_bar/stylish_bottom_bar.dart';

📙 How To Use

items:
option:
backgroundColor:
elevation:
currentIndex:
iconSize:
padding:
inkEffect:
inkColor:
onTap:
opacity:
borderRadius:
fabLocation:
hasNotch:
barAnimation:
barStyle:
unselectedIconColor:
bubbleFillStyle:
iconStyle:
selectedIcon:
dotStyle:

Properties

items → List<BottomBarItem>
option → AnimatedBarOptions
option → BubbleBarOptions
option → DotBarOptions
option → BarBlurOptions
backgroundColor → Color
elevation → double
currentIndex → int
iconSize → double
padding → EdgeInsets
inkEffect → bool
inkColor → Color
onTap → Function(int)
opacity → double
borderRadius → BorderRadius
fabLocation → StylishBarFabLocation
hasNotch → bool
barAnimation → BarAnimation
barStyle → BubbleBarStyle
unselectedIconColor → Color
bubbleFillStyle → BubbleFillStyle
iconStyle → IconStyle
dotStyle → DotStyle
BarStyle
BubbleBarStyle.vertical
BubbleBarStyle.horizotnal
BubbleFillStyle
BubbleFillStyle.fill
BubbleFillStyle.outlined
FabLocation
StylishBarFabLocation.center
StylishBarFabLocation.end
BarAnimation
BarAnimation.fade
BarAnimation.blink
BarAnimation.transform3D
BarAnimation.liquid
BarAnimation.drop
IconStyle
IconStyle.Default
IconStyle.simple
IconStyle.animated
DotStyle
DotStyle.circle
DotStyle.tile
NotchStyle
NotchStyle.circle
NotchStyle.square
NotchStyle.themeDefault
Event
onTap: (index){
    
}

Showcase

BarBlurOptions

BarBlurOptions.frosted()


BarBlurOptions.liquidGlass()

AnimatedBarOptions

IconStyle.Default


IconStyle.simple


IconStyle.animated


BarAnimation.fade


BarAnimation.blink


BarAnimation.liquid


BarAnimation.drop


DotBarOptions

DotStyle.circle


DotStyle.tile

BubbleBarOptions

BubbleBarStyle.horizotnal

BubbleFillStyle.outlined

BubbleBarStyle.vertical

BubbleFillStyle.outlined

Migrate to 1.0.0

List<dynamic> items is changed to List<BottomBarItem> items

From version 1.0.0 option: AnimatedBarOptions and BubbleBarOptions will be used to change the bar items type and properties.

Example

StylishBottomBar(
//  option: const BarBlurOptions.liquidGlass(),
//
//  option: const BarBlurOptions.frosted(),
//
//  option: AnimatedBarOptions(
//    iconSize: 32,
//    barAnimation: BarAnimation.liquid,
//    iconStyle: IconStyle.animated,
//    opacity: 0.3,
//  ),
//
//  option: BubbleBarOptions(
//    barStyle: BubbleBarStyle.horizotnal,
//    // barStyle: BubbleBarStyle.vertical,
//    bubbleFillStyle: BubbleFillStyle.fill,
//    // bubbleFillStyle: BubbleFillStyle.outlined,
//    opacity: 0.3,
//  ),
//
  option: DotBarOptions(
    dotStyle: DotStyle.tile,
    gradient: const LinearGradient(
      colors: [
        Colors.deepPurple,
        Colors.pink,
      ],
      begin: Alignment.topLeft,
      end: Alignment.bottomRight,
    ),
  ),
  items: [
    BottomBarItem(
      icon: const Icon(Icons.abc),
      title: const Text('Abc'),
      backgroundColor: Colors.red,
      selectedIcon: const Icon(Icons.read_more),
    ),
    BottomBarItem(
      icon: const Icon(Icons.safety_divider),
      title: const Text('Safety'),
      backgroundColor: Colors.orange,
    ),
    BottomBarItem(
      icon: const Icon(Icons.cabin),
      title: const Text('Cabin'),
      backgroundColor: Colors.purple,
    ),
  ],
  fabLocation: StylishBarFabLocation.end,
  hasNotch: true,
  currentIndex: selected,
  onTap: (index) {
    setState(() {
      selected = index;
      controller.jumpToPage(index);
    });
  },
)

Contributions and pull requests are welcome! We value your input and appreciate any improvements or suggestions you can provide. Feel free to submit a pull request with your changes. Don't forget to star the repository if you find it useful. Thank you for your collaboration!

所属分类

源码仓库

使用此插件的项目