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

插件详情v1.0.2+1

extended_navbar_scaffold

一个可扩展且带浮动导航栏的自定义 Scaffold

近 30 天下载
12
喜欢数
88
Pub 分数
40

安装插件

flutter pub add extended_navbar_scaffold

插件介绍

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

一个可自定义的 Flutter Scaffold,扩展了标准 Scaffold,带有可展开和浮动的底部导航栏。它支持动态行为,例如展开导航栏以显示更多项目,或在滚动时隐藏导航栏,从而提升具有复杂导航需求的应用程序的用户体验。非常适合需要响应式和交互式底部栏的现代 UI。该包轻量且可无缝集成到现有的 Flutter 项目中。

适合场景

  • 具有复杂底部导航的应用程序
  • 基于滚动的交互式导航栏
  • 可自定义的浮动导航界面
  • 通过可展开的导航栏提升用户体验
  • 现代移动应用设计

主要特点

  • 可扩展的底部导航栏
  • 浮动导航栏支持
  • 可自定义的动画和行为
  • 与 Flutter Scaffold 的无缝集成
  • 轻量且易于实现

适合对象

  • 开发现代 Flutter 应用的开发者
  • 寻求交互式导航模式的设计师
  • 需要响应式底部栏的项目
  • 具有多个导航目的地的移动应用
  • 以用户界面为重点的应用程序

使用建议

  • 有限的平台特定自定义
  • 无内置暗色模式支持
  • 需要手动处理状态管理
  • 未针对非常大的导航项列表进行优化
  • 可能需要额外的样式来处理复杂的布局

原始 README

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

extended_navbar_scaffold

Pub Awesome Flutter

Custom Extended Scaffold

Custom Flutter widgets that makes Bottom Navigation Floating and can be expanded with much cleaner and easier way.

Installing

Add the following to your pubspec.yaml file:

dependencies:
  extended_navbar_scaffold: any

Creating

ExtendedNavigationBarScaffold(
  body: Container(
    color: Colors.deepOrange,
  ),
  elevation: 0,
  floatingAppBar: true,
  appBar: AppBar(
    shape: kAppbarShape,
    leading: IconButton(
      icon: Icon(
        EvaIcons.person,
        color: Colors.black,
      ),
      onPressed: () {},
    ),
    title: Text(
      'Extended Scaffold Example',
      style: TextStyle(color: Colors.black),
    ),
    centerTitle: true,
    backgroundColor: Colors.white,
  ),
  navBarColor: Colors.white,
  navBarIconColor: Colors.black,
  moreButtons: [
    MoreButtonModel(
      icon: MaterialCommunityIcons.wallet,
      label: 'Wallet',
      onTap: () {},
    ),
    MoreButtonModel(
      icon: MaterialCommunityIcons.parking,
      label: 'My Bookings',
      onTap: () {},
    ),
    MoreButtonModel(
      icon: MaterialCommunityIcons.car_multiple,
      label: 'My Cars',
      onTap: () {},
    ),
    MoreButtonModel(
      icon: FontAwesome.book,
      label: 'Transactions',
      onTap: () {},
    ),
    MoreButtonModel(
      icon: MaterialCommunityIcons.home_map_marker,
      label: 'Offer Parking',
      onTap: () {},
    ),
    MoreButtonModel(
      icon: FontAwesome5Regular.user_circle,
      label: 'Profile',
      onTap: () {},
    ),
    null,
    MoreButtonModel(
      icon: EvaIcons.settings,
      label: 'Settings',
      onTap: () {},
    ),
    null,
  ],
  searchWidget: Container(
    height: 50,
    color: Colors.redAccent,
  ),
  // onTap: (button) {},
  // currentBottomBarCenterPercent: (currentBottomBarParallexPercent) {},
  // currentBottomBarMorePercent: (currentBottomBarMorePercent) {},
  // currentBottomBarSearchPercent: (currentBottomBarSearchPercent) {},
  parallexCardPageTransformer: PageTransformer(
    pageViewBuilder: (context, visibilityResolver) {
      return PageView.builder(
        controller: PageController(viewportFraction: 0.85),
        itemCount: parallaxCardItemsList.length,
        itemBuilder: (context, index) {
          final item = parallaxCardItemsList[index];
          final pageVisibility =
              visibilityResolver.resolvePageVisibility(index);
          return ParallaxCardsWidget(
            item: item,
            pageVisibility: pageVisibility,
          );
        },
      );
    },
  ),
);

Screenshots

Implementation

Implementation

Widget Demo

Demo

所属分类

依赖

依赖清单 1 项

源码仓库

使用此插件的项目

暂无相关数据。