indzooom_fancy_bottom_navigation 0.3.5+6

  • Readme
  • Changelog
  • Example
  • Installing
  • 62

IndzooomFancyBottomNavigation #

Fancy Gif

Getting Started #

Add the plugin (pub coming soon):

dependencies:
  ...
  indzoooom_fancy_bottom_navigation: ^0.3.5+6

Limitations #

For now this is limited to more than 1 tab, and less than 5. So 2-4 tabs.

Basic Usage #

Adding the widget

bottomNavigationBar: FancyBottomNavigation(
    tabs: [
        TabData(iconData: Icons.home, title: "Home", titleSize: 12.0),
        TabData(iconData: Icons.search, title: "Search", titleSize: 12.0),
        TabData(iconData: Icons.shopping_cart, title: "Basket", titleSize: 12.0)
    ],
    onTabChangedListener: (position) {
        setState(() {
        currentPage = position;
        });
    },
)

TabData #

iconData -> Icon to be used for the tab<br/> title -> String to be used for the tab<br/> titleSize -> Size of the label in double numeric format (12.0)<br/> onClick -> Optional function to be used when the circle itself is clicked, on an active tab<br/>

Attributes #

required #

tabs -> List of TabData objects<br/> onTabChangedListener -> Function to handle a tap on a tab, receives int position

optional #

initialSelection -> Defaults to 0<br/> circleColor -> Defaults to null, derives from Theme<br/> activeIconColor -> Defaults to null, derives from Theme<br/> inactiveIconColor -> Defaults to null, derives from Theme<br/> taxtColor -> Defaults to null, derives from Theme<br/> barBackgroundColor -> Defaults to null, derives from Theme<br/> 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:

Fancy Theming

Programmatic Selection #

To select a tab programmatically you will need to assign a GlobalKey to the widget. When you want to change tabs you will need to access the State using this key, and then call setPage(position).<br/> See example project, main.dart, line 75 for an example.

Showcase #

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

Inspiration #

This library/package has been evolved from the work of Tony Owen: <br/> https://github.com/tunitowen

Contributing #

Contributions are welcome, please submit a PR :)

[0.3.5+6] - Adjusts in Lowest resolutions #

  • Includes Support to android and IOs

[0.3.5+5] - Adjusts in Lowest resolutions #

  • Includes Support to android and IOs

[0.3.5+4] - Adjusts in Lowest resolutions #

  • Includes Support to android and IOs

[0.3.5+3] - Adjusts in Lowest resolutions #

  • Includes Support to android and IOs

[0.3.5+2] - Adjusts in Lowest resolutions #

  • Includes Support to android and IOs

[0.3.5+1] - IPhone Adjust #

  • Includes Support to the 11ProMax

[0.3.5] - IPhone Adjust #

  • Includes Support to the 11ProMax

[0.3.4] - Icon and Title Size adjust by parameter #

  • Includes a new custom tabItem library

[0.3.3] - Icon and Title Size adjust by parameter #

  • Changes the TabItem Format

[0.3.2] - Add optional click to active tab circle #

[0.3.1] - Fix wrong icon bug #

[0.3.0] - Remove Overlay widget causing huge problems #

  • Removed Overlay widget
  • Added test
  • Changes to constructor, as RouteObserver is no longer needed.

[0.2.0] - Bug fixes, and new functionality #

  • Breaking change!! Widget now requires a RouteObserver
  • Fixes bug where the active tabs circle is left on screen when navigating away
  • Adds key to the Widget to enable programmatic selection.

[0.1.1] - Small change to constructor #

  • No longer required BuildContext to be passed.
  • Moves some init code outside initState

[0.1.0] - Initial Beta Release #

  • Beta release

example/README.md

example #

A new Flutter application.

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:


dependencies:
  indzooom_fancy_bottom_navigation: ^0.3.5+6

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:indzooom_fancy_bottom_navigation/indzooom_fancy_bottom_navigation.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
32
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
80
Overall:
Weighted score of the above. [more]
62
Learn more about scoring.

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

  • Dart: 2.7.1
  • pana: 0.13.5
  • Flutter: 1.12.13+hotfix.8

Health suggestions

Format lib/indzooom_fancy_bottom_navigation.dart.

Run flutter format to format lib/indzooom_fancy_bottom_navigation.dart.

Format lib/internal/indzooom_tab_item.dart.

Run flutter format to format lib/internal/indzooom_tab_item.dart.

Format lib/paint/half_clipper.dart.

Run flutter format to format lib/paint/half_clipper.dart.

Format lib/paint/half_painter.dart.

Run flutter format to format lib/paint/half_painter.dart.

Maintenance issues and suggestions

Homepage URL doesn't exist. (-20 points)

At the time of the analysis the homepage field https://github.com/giulianojordao/indzooom_fancy_bottom_navigation.git was unreachable.

Dependencies

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