cuberto_bottom_bar 1.0.0

  • Readme
  • Changelog
  • Example
  • Installing
  • 90

Cuberto Bottom Bar #

Cuberto Bottom Bar in flutter<br/>

Cuberto Bottom bar Gif- Default Style<br/>

Cuberto Bottom bar Gif- Default Style <br/>

Cuberto Bottom bar Gif- Faded Style<br/>

Cuberto Bottom bar Gif- Faded Style <br/>

Getting Started #

  cuberto_bottom_bar: ^1.0.0

Limitations #

For now this is limited to more than 1 tab, and less than 5. So 2-4 tabs. textColor will only be applied in the case of STYLE_NORMAL, in case of STYLE_FADED_BACKGROUND the tabColor will be set as textColor,(if tabColor is not set inactiveColor will be set)

manually drawer or endDrawer has to be added and then respective drawer has to be added in CubertoBottomBar ( CubertoDrawer.NO_DRAWER for no drawer, CubertoDrawer.START_DRAWER for drawer and CubertoDrawer.END_DRAWER for endDrawer)

By default the drawer overlaps the CubertoBottomBar, for that margin: EdgeInsets.only(bottom: 60.0) has been added. (Please check with the example)

The values in onTabChangedListener: (position, title, color) (position, title and color are null at the beginning), but gets the value once the tab is clicked.

Basic Usage #

Adding the widget

bottomNavigationBar: CubertoBottomBar(
        inactiveIconColor: inactiveColor,
        tabStyle: CubertoTabStyle.STYLE_FADED_BACKGROUND, // By default its CubertoTabStyle.STYLE_NORMAL
        initialSelection: 0, // By default its 0
        drawer: CubertoDrawer.NO_DRAWER, // By default its NO_DRAWER (Availble START_DRAWER and END_DRAWER as per where you want to how the drawer icon in Cuberto Bottom bar)
        tabs: [
              iconData: Icons.home,
              title: "Home",
              tabColor: Colors.deepPurple),
              title: "Search",
              iconData: Icons.access_alarm,
              title: "Alarm",
              tabColor: Colors.amber),
              iconData: Icons.settings,
              title: "Settings",
              tabColor: Colors.teal),
        onTabChangedListener: (position, title, color) {
          setState(() {
            currentPage = position;
            currentTitle = title;
            currentColor = color;

TabData #

iconData -> Icon to be used for the tab<br/> title -> String to be used for the tab<br/> tabColor: -> Colors to be used for background and label when STYLE_FADED_BACKGROUND is choosed<br/> onClick -> Optional function to be used when the circle itself is clicked, on an active tab

Attributes #

required #

tabs -> List of TabData objects<br/> onTabChangedListener -> Function to handle a tap on a tab, receives int position, String title and Color tabColor (if not set will return inactiveIconColor in both STYLE_NORMAL and STYLE_FADED_BACKGROUND)

optional #

initialSelection -> Defaults to 0<br/> inactiveIconColor -> Defaults to null, derives from Theme<br/> textColor -> Defaults to Colors.white<br/> barBackgroundColor -> Defaults to null, derives from Theme<br/> barBorderRadius -> Default to null (Scaffold's background color must be different than barBackgroundColor)<br/> tabStyle -> Defaults to CubertoTabStyle.STYLE_NORMAL<br/> drawer -> Defaults to CubertoDrawer.NO_DRAWER (can be set as CubertoDrawer.START_DRAWER or CubertoDrawer.END_DRAWER as per the need for the placement of drawer icon) key -> Defaults to null<br/>

Theming #

The bar will attempt to use your current theme out of the box, however you may want to theme it. Here are the attributes:

Cuberto Bottom Bar Theming - STYLE_FADED_BACKGROUND #

Cuberto Bottom Bar Theming - STYLE_FADED_BACKGROUND <br/>

Cuberto Bottom Bar Theming - STYLE_NORMAL #

Cuberto Bottom Bar Theming - STYLE_NORMAL <br/>

Showcase #

Using this package in a live app, let me know and I'll add you app here.

Inspiration #

This package was inspired by a design on dribbble by Sourabh Gupta and the faded backgorund style from Aurelien Salomon:<br/> <br/> <br/> <br/>

Contributing #

Contributions are welcome, please submit a PR :)


  • Increased button padding
  • Option added to add border radius


  • Fixed mistakes in
  • Fixed some bugs


  • The first beta release of Cuberto Bottom Bar


flutter_app_cuberto #

A new Flutter application. (cuberto)

Getting Started #

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

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

Use this package as a library

1. Depend on it

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

  cuberto_bottom_bar: ^1.0.0

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:cuberto_bottom_bar/cuberto_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 Oct 21, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.5.1
  • pana: 0.12.21
  • Flutter: 1.9.1+hotfix.4


Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Health suggestions

Fix lib/cuberto_bottom_bar.dart. (-0.50 points)

Analysis of lib/cuberto_bottom_bar.dart reported 1 hint:

line 52 col 7: Don't explicitly initialize variables to null.

Fix lib/internal/tab_item.dart. (-0.50 points)

Analysis of lib/internal/tab_item.dart reported 1 hint:

line 11 col 7: This class (or a class which this class inherits from) is marked as '@immutable', but one or more of its instance fields are not final: TabItem.stickyKey

Fix lib/internal/tab_item_new.dart. (-0.50 points)

Analysis of lib/internal/tab_item_new.dart reported 1 hint:

line 11 col 7: This class (or a class which this class inherits from) is marked as '@immutable', but one or more of its instance fields are not final: TabItemNew.stickyKey


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