FLUTTER ECOSYSTEM

aseem09/navigation_action_bar

flutter용 사용자 정의 네비게이션 바 및 플로팅 액션 버튼

navigation_action_bar 프로젝트 이미지
Stars
7
Forks
7
최근 푸시(UTC)
2023. 7. 6.
프로젝트 상태
활성
Aseem Verma GitHub avatar
GITHUB User

Aseem Verma ↗

Coding on the Go!

IIT RoorkeeIndia
언어DartSwiftKotlinObjective-C

기술 주제

이 저장소가 배포한 패키지

사용 중인 의존성

의존성 목록 2 개
  • flutter{"sdk":"flutter"}
  • flutter_test개발 의존성{"sdk":"flutter"}

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

README 펼치기 / 접기

Navigation Action Bar

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


https://user-images.githubusercontent.com/43964071/83350453-dc337c80-a359-11ea-829f-79021da7f77c.gif

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.