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

bottom_sheet_expandable_bar 封面
插件详情v0.1.2

bottom_sheet_expandable_bar

一个用于显示底部栏的包,具备展开并显示底部表单的功能

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
54
喜欢数
28
Pub 分数
140

安装插件

flutter pub add bottom_sheet_expandable_bar

插件介绍

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

一个 Flutter 包,提供可展开为底部面板的底部导航栏,以显示额外内容或操作。它通过结合底部栏的简洁性与底部面板的灵活性,增强了用户交互体验。适用于需要紧凑导航且具备可扩展功能的应用程序,支持 Android、iOS、Web、macOS、Windows 和 Linux 多个平台。该包轻量级,可无缝集成到现有的 Flutter 项目中。

适合场景

  • 移动应用导航,带可展开选项
  • 通过交互式底部表单增强用户界面
  • 在网页和桌面应用程序中创建动态底部栏
  • 提供对次要操作的快速访问
  • 跨平台设计响应式布局

主要特点

  • 可扩展的底部栏界面
  • 支持多个平台
  • 与 Flutter 的轻松集成
  • 可自定义的外观和行为
  • 平滑的动画过渡
  • 内置手势处理

适合对象

  • 开发跨平台 Flutter 应用的开发者
  • 寻求交互式导航模式的UI设计师
  • 需要可折叠操作面板的应用
  • 致力于实现跨平台用户体验一致性的项目
  • 希望为高级底部表单功能实现最小化设置的团队

使用建议

  • 可能需要额外的样式才能实现复杂的设计
  • 底部抽屉中包含大量内容时的性能影响
  • 超出基本展开/折叠之外的自定义功能有限
  • 最适合中等内容量
  • 在较小的设备上需要仔细处理屏幕空间

原始 README

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

Bottom Sheet Expandable Bar

This package create a bottom navigation bar with the capability to show a bottom sheet.

Instalation

Include bottom_sheet_expandable_bar in your pubspec.yaml file:

dependencies:
  flutter:
    sdk: flutter
  bottom_sheet_expandable_bar: version

Usage

To use this package, just import it into your file and enjoy it.

import 'package:bottom_sheet_expandable_bar/bottom_sheet_bar_icon.dart';
import 'package:bottom_sheet_expandable_bar/bottom_sheet_expandable_bar.dart';

...

bottomSheet: BottomBarSheet(
  children: [
    BottomSheetBarIcon(
      icon: Icon(Icons.home),
      color: Colors.redAccent, 
      onTap: (){
      },
    ),
    BottomSheetBarIcon(
      icon: Icon(Icons.person),
      color: Colors.blueAccent, 
      onTap: (){
      },
    ),
    BottomSheetBarIcon(
      icon: Icon(Icons.edit),
      color: Colors.blue[800], 
      onTap: (){
      },
    ),
    BottomSheetBarIcon(
      icon: Icon(Icons.star),
      color: Colors.orangeAccent, 
      onTap: (){
      },
    ),
  ],
),

...

IMPORTANT: Add this line to your theme to avoid an unexpected behaviour

theme: ThemeData(
  /// Add this line
  bottomSheetTheme: BottomSheetThemeData(backgroundColor: Colors.transparent),
),

BottomSheetBarIcon

This widget allow to generate a dynamic icon

Properties

Name Description Required Default
icon Widget to put as button icon False
color Color to indicate icon color False Colors.black
onTap Function to handle button on tap True
BottomBarSheet

This widget allow to generate a bottom bar with the capability to expanto to a bottom sheet

Properties

Name Description Required Default
children List of BottomSheetBarIcon widget to show icons within the bar False
buttonPosition ButtonBottomBarPosition to indicate expandable button position (center, end) False ButtonBottomBarPosition.center
backgroundBarColor Color to indicate bottom bar background color False Colors.white
backgroundColor Color to indicate bottom sheet color False Colors.white
showExpandableButton Boolean value to indicate when to show or hide expandable button False False
innerChild Widget to show into the bottom sheet False
bottomRadius Double value to indicate the corners radius for the bottom bar False 50.0
bottomBarHeight Double value to indicate the bottom bar height False 60.0
bottomBarWidth Double value to indicate the bottom bar height False Screen width * 0.9
duration Duration between show or hide the bottom sheet False 250 milliseconds
bottomSheetHeight Double value to indicate the bottom sheet height False Screen height * 0.75
iconExpand Icon to show into the expandable button False Icon(Icons.navigation)
iconColor Expandable button color False Colors.green
onClose Function to call when bottom sheet is closed False (){}
currentIndex Integer value to indicatet which tab is selected False 0
curve Curve to use on enter bottom sheet animation False Curves.ease
Expandable button at center

Expandable button at end

As a simple navigation bar

所属分类

源码仓库

使用此插件的项目

暂无相关数据。