custombottomnavbar 0.0.8

  • Readme
  • Changelog
  • Example
  • Installing
  • 50

custombottomnavbar #

Custom Bottom Navigation Bar with the ability to create custom shapes for the icons

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.0.6] - 13/6/20. #

trying to fix the border radius issue sorry for that Super Easy Fixed!! just set the background color to the correct color!!

going to work on the ability to change the position of the NavItem when their in a container


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

class Test extends StatefulWidget {
  _TestState createState() => _TestState();

List indexList = [
  // put your pages here

class _TestState extends State<Test> {
  int _index = 0;
  Widget build(BuildContext context) {
    return Scaffold(
      // backgroundColor: Color(0xff2F2D52),
      bottomSheet: CustomBottomNavigation(
        radius: BorderRadius.only(
            topRight: Radius.circular(0), topLeft: Radius.circular(0)),
        items: [
          // items go here
            icon: Icons.home,
            index: _index,
            bg: _index != 0 ? Color(0xff595775) : Colors.white,
            size: 30,
            current: 0,
            onTap: () {
              setState(() {
                _index = 0;
            width: 60,
            height: 60,
            decoration: BoxDecoration(
              color: _index == 1 ? Colors.white : Color(0xff595775),
              borderRadius: BorderRadius.circular(20),
            child: NavItem(
              icon: Icons.add,
              index: _index,
              bg: _index == 1 ? Color(0xff595775) : Colors.white,
              size: 40,
              current: 1,
              onTap: () {
                setState(() {
                  _index = 1;
        color1: Color(0xff2F2D52),
      body: indexList.elementAt(_index),

Use this package as a library

1. Depend on it

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

  custombottomnavbar: ^0.0.8

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:custombottomnavbar/custombottomnavbar.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 14, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.8.4
  • pana: 0.13.15
  • Flutter: 1.17.5

Analysis suggestions

Package not compatible with SDK dart


  • custombottomnavbar that is a package requiring null.

Health suggestions

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

Analysis of lib/custombottomnavbar.dart reported 1 hint:

line 69 col 7: This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its instance fields aren't final: NavItem.index, NavItem.onTap

Maintenance issues and suggestions

Homepage URL isn't helpful. (-10 points)

Update the homepage field from pubspec.yaml: link to a website about the package or use the source repository URL.

Package is pre-v0.1 release. (-10 points)

While nothing is inherently wrong with versions of 0.0.*, it might mean that the author is still experimenting with the general direction of the API.


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