Search packages, repositories and app categories

fancy_bottom_navigation cover
Package detailsv0.3.3

fancy_bottom_navigation

An animated Bottom Navigation Bar for Flutter apps, icon animates into place, colors are customisable..

30-day downloads
356
Likes
229
Pub points
60

Install package

flutter pub add fancy_bottom_navigation

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Fancy Bottom Navigation is a Flutter package that provides an animated bottom navigation bar with smooth icon transitions and customizable colors. It enhances the user interface of mobile apps by offering dynamic visual feedback when switching between tabs. The animation effect makes icons appear and disappear elegantly, improving the overall user experience. Developers can easily customize the appearance and behavior to match their app's design language. Ideal for apps requiring modern, engaging navigation patterns.

Use cases

  • Mobile apps with tab-based navigation
  • Enhancing UI/UX with animated transitions
  • Customizing bottom navigation appearance
  • Creating visually appealing dashboards
  • Designing interactive app interfaces

Key features

  • Animated icon transitions
  • Fully customizable colors
  • Smooth tab switching effects
  • Easy integration with existing Flutter projects
  • Supports custom icon and label styling

Suitable for

  • Flutter developers seeking modern navigation
  • Apps focused on visual appeal
  • Projects requiring animated UI components
  • Design-driven mobile applications
  • Developers wanting quick navigation enhancements

Considerations

  • Limited platform-specific customization
  • May require additional styling for complex layouts
  • Not optimized for very large numbers of tabs
  • Animation performance may vary on older devices
  • Requires manual handling of state management

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

FancyBottomNavigation

Fancy Gif

Getting Started

Add the plugin (pub coming soon):

dependencies:
  ...
  fancy_bottom_navigation: ^0.3.2

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"),
        TabData(iconData: Icons.search, title: "Search"),
        TabData(iconData: Icons.shopping_cart, title: "Basket")
    ],
    onTabChangedListener: (position) {
        setState(() {
        currentPage = position;
        });
    },
)

TabData

iconData -> Icon to be used for the tab
title -> String to be used for the tab
onClick -> Optional function to be used when the circle itself is clicked, on an active tab

Attributes

required

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

optional

initialSelection -> Defaults to 0
circleColor -> Defaults to null, derives from Theme
activeIconColor -> Defaults to null, derives from Theme
inactiveIconColor -> Defaults to null, derives from Theme
textColor -> Defaults to null, derives from Theme
barBackgroundColor -> Defaults to null, derives from Theme
key -> Defaults to null

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).
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 package was inspired by a design on dribbble by Manoj Rajput:
https://dribbble.com/shots/5419022-Tab

Contributing

Contributions are welcome, please submit a PR :)

Categories

Dependencies

Dependency list 1 items

Source repository

Projects using this package