FLUTTER ECOSYSTEM

AbdallahAwd/sweet_nav_bar

This package is to build gradiant and floating Navigation Bar with a few lines of code.

sweet_nav_bar project cover
Stars
3
Forks
1
Last push (UTC)
Mar 9, 2024
Project status
Active
Abdallah Awad GitHub avatar
GITHUB User

Abdallah Awad ↗

I'm Abdullah, from Egypt, a Software Engineer full-stack mobile developer (Dart / Go)

LanguagesDart

Packages published by this repository

Dependencies used

Dependency list 3 items
  • flutter{"sdk":"flutter"}
  • flutter_testDevelopment{"sdk":"flutter"}
  • flutter_lintsDevelopment^2.0.0

Original README

English project snapshot. Visit GitHub for the latest content.

Expand / collapse project README
pub package This package is to build gradiant and floating Navigation Bar with a few lines of code.

Features

  • easy to use
  • gradiant icon easily
  • some beautiful animation

Getting started

To use this package, add sweet_nav_bar as a dependency in your pubspec.yaml file.


https://raw.githubusercontent.com/AbdallahAwd/sweet_nav_bar/HEAD/sweet_nav.gif

Usage

Here is How to use it, You can find Package API

bottomNavigationBar: SweetNavBar(
        paddingGradientColor: iconLinearGradiant,
        currentIndex: cIndex,
        paddingBackgroundColor: Colors.red,
        items: [
          SweetNavBarItem(
              sweetActive: const Icon(Icons.home),
              sweetIcon: const Icon(
                Icons.home_outlined,
              ),
              sweetLabel: 'Home',
              iconColors: iconLinearGradiant,
              sweetBackground: Colors.red),
          SweetNavBarItem(
              sweetIcon: const Icon(Icons.business), sweetLabel: 'Business'),
          SweetNavBarItem(
              sweetIcon: const Icon(Icons.school), sweetLabel: 'School'),
        ],
        onTap: (index) {
          setState(() {
            cIndex = index;
          });
        },
      ),