Search packages, repositories and app categories

Package detailsv1.0.0+4

gradient_bottom_navigation_bar

A material Bottom Navigation Bar with a linear gradient option.

30-day downloads
5
Likes
12
Pub points
40

Install package

flutter pub add gradient_bottom_navigation_bar

Package Overview

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

A Flutter package that enhances the standard Bottom Navigation Bar with customizable linear gradient backgrounds. It provides a visually appealing alternative to flat-colored navigation bars, ideal for modern app designs. The package integrates seamlessly with Material Design and allows developers to define gradient colors and direction easily. Built for simplicity and performance, it supports smooth transitions and responsive layouts. Perfect for apps aiming to stand out with dynamic, colorful interfaces.

Use cases

  • Creating visually engaging bottom navigation bars
  • Enhancing app UI with gradient effects
  • Modernizing existing navigation components
  • Designing mobile apps with vibrant themes
  • Implementing animated gradient transitions

Key features

  • Linear gradient background support
  • Easy integration with Material Design
  • Customizable gradient colors and direction
  • Lightweight and performant
  • Responsive layout compatibility
  • Simple API for gradient configuration

Suitable for

  • Flutter developers seeking aesthetic navigation bars
  • Apps with a focus on visual design
  • Projects requiring dynamic UI elements
  • Mobile apps targeting younger audiences
  • Designers working with vibrant color schemes

Considerations

  • Limited to gradient styling only
  • No built-in animation controls
  • Requires manual handling of state management
  • Not optimized for complex gradient patterns
  • May not suit minimalist or dark-themed apps

Original README

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

Gradient Bottom Navigation Bar

pub package

This package allows you to add a gradient to the standard Material Bottom Navigation Bar.

Getting Started

First, add this line in your project's pubspec.yaml

dependencies:
  ...
  gradient_bottom_navigation_bar: ^1.0.0+4

For help getting started with Flutter, view the online documentation.

Usage examples

Import gradient_bottom_navigation_bar.dart in your desired class

import 'package:gradient_bottom_navigation_bar/gradient_bottom_navigation_bar.dart';

...
Basic implementation
@override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Example'),
      ),
      body: Center(
        child: _widgetOptions.elementAt(_selectedIndex),
      ),
      bottomNavigationBar: GradientBottomNavigationBar(
        backgroundColorStart: Colors.purple,
        backgroundColorEnd: Colors.deepOrange,
        items: <BottomNavigationBarItem>[
          BottomNavigationBarItem(icon: Icon(Icons.home), title: Text('Home')),
          BottomNavigationBarItem(icon: Icon(Icons.business), title: Text('Business')),
          BottomNavigationBarItem(icon: Icon(Icons.school), title: Text('School')),
        ],
        currentIndex: _selectedIndex,
        onTap: _onItemTapped,
      ),
    );
  }

You can also check the example for additional information.

Screenshots

Example

Categories

Source repository

Projects using this package

No data available yet.