Code Monkey home page Code Monkey logo

bottom_nav's Introduction

A Flutter BottomNavigation package with extra functions and flexibility and ease of usage.

Features

  • Supports every other widgets aside Icon as [BottomNavigation] Item
  • Supports [BottomNavigation] top [Divider] widget.
  • Support [BottomNavItem] custom background which can either be enable or disabled.
  • [BottomNavigation] Background can be fully customized, images can be applied likewise gradient colors.

Screenshots

screenshot_1

screenshot_2

screenshot_3

screenshot_4

Getting started

To get started with this package just set it up in your [pubspec.yaml] file, thus:

Dependency

  bottom_nav:
    git:
      url: [email protected]:kenresoft/bottom_nav.git
      ref: master

Usage

 class BottomNavExample extends StatelessWidget {
  const BottomNavExample({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return BottomNav(
      labelStyle: const TextStyle(fontStyle: FontStyle.italic),
      height: 82,
      padding: const EdgeInsets.all(25).copyWith(top: 5, bottom: 5),
      backgroundSelected: Colors.blue.shade900,
      divider: const Divider(height: 0),
      borderRadius: const BorderRadius.only(topRight: Radius.circular(20), topLeft: Radius.circular(20)),
      onTap: (index) => buildNavSwitch(index, context, widget.ref),
      iconSize: 23,
      labelSize: 20,
      backgroundColor: Colors.white.withOpacity(0.2),
      color: Colors.white.withOpacity(0.5),
      colorSelected: Colors.white,
      indexSelected: widget.ref.watch(tabProvider.select((value) => value)),
      items: const [
        BottomNavItem(label: 'Home', child: CupertinoIcons.home),
        BottomNavItem(label: 'Book', child: CupertinoIcons.book),
        BottomNavItem(label: 'Bubble', child: CupertinoIcons.bubble_left),
        BottomNavItem(label: 'Bookmark', child: CupertinoIcons.bookmark),
      ],
    );
  }
}

Additional information

This package is not hosted on the pub.dev site yet. Feel free to add in your suggestions, contributions and support. We keep upgrading this package for better performance even as the dart and flutter frameworks are been updated for the community.

bottom_nav's People

Contributors

kenresoft avatar

Stargazers

 avatar

Watchers

 avatar  avatar

bottom_nav's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.