expanding_bottom_bar 0.1.2

  • Readme
  • Changelog
  • Example
  • Installing
  • 79

expanding_bottom_bar #

A bottom navigation bar with expanding titles. Inspired by the Dribbble design here: https://t.co/BtUlszSmRR

Demo #

Properties #

List<ExpandingBottomBarItem> items; #

The items to be displayed in the BottomNavBar.

Duration animationDuration; #

The duration of the animation of the box flip.

ValueChanged<int> onIndexChanged; #

Callback for getting value of item selection.

int selectedIndex; #

The current selected index of the BottomNavigationBar

double navBarHeight; #

The height of the BottomNavBar.

Color backgroundColor #

The color of the background of the BottomNavigationBar.

Getting Started #

This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

[0.1.2] - 18/02/2019 #

  • Changed description


import 'package:expanding_bottom_bar/expanding_bottom_bar.dart';
import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      home: MyHomePage(),

class MyHomePage extends StatefulWidget {
  _MyHomePageState createState() => _MyHomePageState();

class _MyHomePageState extends State<MyHomePage> {

  var demoIndex = 0;

  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(),
      body: Container(),
      bottomNavigationBar: ExpandingBottomBar(
        navBarHeight: 90.0,
        items: [
            icon: Icons.bookmark_border,
            text: "Home",
            selectedColor: Colors.purple,
            icon: Icons.favorite_border,
            text: "Likes",
            selectedColor: Colors.pink,
            icon: Icons.search,
            text: "Search",
            selectedColor: Colors.amber,
            icon: Icons.star_border,
            text: "Profile",
            selectedColor: Colors.teal,
        selectedIndex: demoIndex,
        onIndexChanged: (demo) {
          setState(() {
            demoIndex = demo;

Use this package as a library

1. Depend on it

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

  expanding_bottom_bar: ^0.1.2

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:expanding_bottom_bar/expanding_bottom_bar.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Jul 2, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.8.4
  • pana: 0.13.9+1
  • Flutter: 1.17.3

Analysis suggestions

Package not compatible with SDK dart

because of import path [expanding_bottom_bar]

Maintenance suggestions

Package is getting outdated. (-36.71 points)

The package was last published 71 weeks ago.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.12 1.14.13
meta 1.1.8 1.2.0
sky_engine 0.0.99
typed_data 1.1.6 1.2.0
vector_math 2.0.8
Dev dependencies