expanding_bottom_bar 0.1.2

  • README.md
  • Example
  • Installing
  • Versions
  • 72

expanding_bottom_bar #

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

Demo #

Properties #

List items;

The items to be displayed in the BottomNavBar.

Duration animationDuration; #

The duration of the animation of the box flip.

ValueChanged 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 packages get

Alternatively, your editor might support flutter packages 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';
Version Uploaded Documentation Archive
0.1.2 Feb 19, 2019 Go to the documentation of expanding_bottom_bar 0.1.2 Download expanding_bottom_bar 0.1.2 archive
0.1.1 Feb 18, 2019 Go to the documentation of expanding_bottom_bar 0.1.1 Download expanding_bottom_bar 0.1.1 archive
0.1.0 Feb 18, 2019 Go to the documentation of expanding_bottom_bar 0.1.0 Download expanding_bottom_bar 0.1.0 archive
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 Mar 6, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.2.0
  • pana: 0.12.14
  • Flutter: 1.3.3


Detected platforms: Flutter

References Flutter, and has no conflicting libraries.


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