Coder Social home page Coder Social logo

aseem09 / navigation_action_bar Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 7.0 62 KB

Custom Navigation Bar with Floating Action Bar for flutter

Home Page: https://pub.dev/packages/navigation_action_bar

License: MIT License

Kotlin 0.82% Swift 2.67% Objective-C 0.25% Dart 96.26%
flutter dart android ios navigationbar actionbar animations

navigation_action_bar's Introduction

Navigation Action Bar

A flutter package for a beautiful modern Navigation Bar along with a Floating Action Bar


Table of contents

Installing

1. Depend on it

Add this to your package's pubspec.yaml file:

dependencies:
  navigation_action_bar: ^0.0.1

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter packages get

3. Import it

Now in your Dart code, you can use:

import 'package:navigation_action_bar/navigation_action_bar.dart';

Usage

    Scaffold(
      bottomNavigationBar: NavigationActionBar(
        context: context,
        scaffoldColor: Colors.blueAccent,
        index: 0,
        subItems: [
          NavBarItem(iconData: Icons.attach_file, size: 25),
          NavBarItem(iconData: Icons.photo, size: 25),
          NavBarItem(iconData: Icons.camera_alt, size: 25),
        ],
        mainIndex: 2,
        items: [
          NavBarItem(iconData: Icons.list, size: 30),
          NavBarItem(iconData: Icons.compare_arrows, size: 30),
          NavBarItem(iconData: Icons.add, size: 40),
          NavBarItem(iconData: Icons.call_merge, size: 30),
          NavBarItem(iconData: Icons.person, size: 30),
        ],
        onTap: (index) {
          setState(() {
            currentIndex = index;
          });
        },
      )

Attributes

Dart attribute Datatype Description Default Value
index int Specifies the index of the tab which needs to be open initially 0
mainIndex int Specifies the index where the Rotating Button should be placed @required
items List<NavBarItem> The list of widgets which are to be displayed in the Navigation Bar @required
subItems List<NavBarItem> The list of widgets which are to be displayed in Action Bar @required
scaffoldColor Color The color of the scaffold Colors.blueAccent
backgroundColor Color The background color of Navigation Bar Colors.white
animationCurve AnimationCurve Specifies the type of animation curve used by action buttons Curves.bounceOut
animationDuration Duration Specifies how long the animation will last 300 Milliseconds

License

Navigation_Action_Bar is licensed under MIT license. View license.

navigation_action_bar's People

Contributors

aseem09 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

navigation_action_bar'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.