bmnav 0.3.3

  • README.md
  • CHANGELOG.md
  • Example
  • Installing
  • Versions
  • new52

bmnav

A highly flexible Flutter implementation of the Bottom Navigation Bar.

Pub PayPal

BottomNavigationBar with label

BottomNavigationBar with label when selected

BottomNavigationBar without label

Get Started

Add bmanv to your pubspec.yaml file:

dependencies:
  bmnav: ^0.3.3

Import bmnav in your main.dart file:

import 'package:bmnav/bmnav.dart' as bmnav;

Implement bmnav.BottomNav in the bottomNavigationBar parameter in the Scaffold widget:

@override
Widget build(BuildContext ctx) {
	return Scaffold(
		appBar: AppBar(title: Text('Bottom Nav Demo')),
		body: Container(child: Text('Hello World')),
		bottomNavigationBar: bmnav.BottomNav(
			index: 0,
			onTap: (i) {},
			items: [
				bmnav.BottomNavItem(Icons.home),
				bmnav.BottomNavItem(Icons.fitness_center),
				bmnav.BottomNavItem(Icons.person),
				bmnav.BottomNavItem(Icons.view_headline)
			],
		),
	);
}

You can find a fully fledged example with navigation and custom styles here.

Props

NameExplanationDefault
indexstarting index0
onTapcallback when a bottom nav item is pressednull
itemsbottom nav itemsnull
elevationelevation of bottom nav8.0
showLabelshows or hides labelfalse
showSelectedLabelshows or hides label when icon selectedfalse
backgroundColorbackground color of bottom navColors.white
colordefault icon colormd.Colors.grey[700]
selectedColorcolor of icon when selectedmd.Colors.blue
iconSizedefault icon size24.0
selectedIconSizesize of the icon when selected24.0

Contributions

Feel free to contribute to this project.

Support

If you found this project to be useful then please consider donating to help me continue maintaining this project and create new projects. :)

Paypal Donate Button

0.3.1

  • Update README

0.3.0

  • Added elevation parameter.
  • Added color parameter.
  • Added selectedColor parameter.
  • Added iconSize parameter.
  • Added selectedIconSize parameter.
  • Added showLabel parameter.
  • Added showSelectedLabel parameter.
  • Added backgroundColor parameter.
  • Removed padding parameter.
  • Removed iconStyle parameter.
  • Removed selectedIconStyle parameter.

0.2.0

  • Added iconStyle and selectedIconStyle options.
  • Added padding option.
  • Added example/ directory.

0.1.0

  • Initial Release!

example/README.md

Bottom Nav Demo

A flutter application demo for bmnav

Use this package as a library

1. Depend on it

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


dependencies:
  bmnav: ^0.3.3

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:bmnav/bmnav.dart';
  
Version Uploaded Documentation Archive
0.3.3 Nov 6, 2018 Go to the documentation of bmnav 0.3.3 Download bmnav 0.3.3 archive
0.3.2 Nov 6, 2018 Go to the documentation of bmnav 0.3.2 Download bmnav 0.3.2 archive
0.3.1 Nov 6, 2018 Go to the documentation of bmnav 0.3.1 Download bmnav 0.3.1 archive
0.3.0 Nov 6, 2018 Go to the documentation of bmnav 0.3.0 Download bmnav 0.3.0 archive
0.2.0 Nov 5, 2018 Go to the documentation of bmnav 0.2.0 Download bmnav 0.2.0 archive
0.1.0 Nov 4, 2018 Go to the documentation of bmnav 0.1.0 Download bmnav 0.1.0 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
3
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
52
Learn more about scoring.

We analyzed this package on Nov 14, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0
  • pana: 0.12.6
  • Flutter: 0.11.3

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.68.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11
meta 1.1.6
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test