• Stars
    star
    259
  • Rank 153,437 (Top 4 %)
  • Language
    Dart
  • License
    BSD 2-Clause "Sim...
  • Created over 5 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A 3D Bottom Navigation Bar in Flutter

flip_box_bar

A 3D BottomNavigationBar inspired by Dribbble design by Dannniel [https://dribbble.com/shots/4811135-Tab-Bar-Cube-Interaction].

Demo

Example Use

      // In Scaffold
      int selectedIndex = 0;
      
      bottomNavigationBar: FlipBoxBar(
              selectedIndex: index,
              items: [
                FlipBarItem(icon: Icon(Icons.map), text: Text("Map"), frontColor: Colors.blue, backColor: Colors.blueAccent),
                FlipBarItem(icon: Icon(Icons.add), text: Text("Add"), frontColor: Colors.cyan, backColor: Colors.cyanAccent),
                FlipBarItem(icon: Icon(Icons.chrome_reader_mode), text: Text("Read"), frontColor: Colors.orange, backColor: Colors.orangeAccent),
                FlipBarItem(icon: Icon(Icons.print), text: Text("Print"), frontColor: Colors.purple, backColor: Colors.purpleAccent),
                FlipBarItem(icon: Icon(Icons.print), text: Text("Print"), frontColor: Colors.pink, backColor: Colors.pinkAccent),
              ],
              onIndexChanged: (newIndex) {
                setState() {
                    selectedIndex = newIndex;
                }
              },
            ),

Properties

List<FlipBarItem> items;

The items to be displayed in the BottomNavBar.

Duration animationDuration;

The duration of the animation of the box flip.

ValueChanged<int> onIndexChanged;

Callback for getting value of item selection.

int initialIndex;

The initial selected index of the BottomNavBar.

double navBarHeight;

The height of the BottomNavBar.

Note: Breaking change

Prior to 0.9.0, only initialIndex was provided as a parameter. 0.9.0 onwards, user needs to modify the selectedIndex property and rebuild to animate. The reason for this modification is that it allows programmatically changing the selected index whereas the earlier version did not.

A version of the code before 0.9.0 would look like this:

        // In Scaffold
      
      bottomNavigationBar: FlipBoxBar(
              initialIndex: 0,
              items: [
                FlipBarItem(icon: Icon(Icons.map), text: Text("Map"), frontColor: Colors.blue, backColor: Colors.blueAccent),
                FlipBarItem(icon: Icon(Icons.add), text: Text("Add"), frontColor: Colors.cyan, backColor: Colors.cyanAccent),
                FlipBarItem(icon: Icon(Icons.chrome_reader_mode), text: Text("Read"), frontColor: Colors.orange, backColor: Colors.orangeAccent),
                FlipBarItem(icon: Icon(Icons.print), text: Text("Print"), frontColor: Colors.purple, backColor: Colors.purpleAccent),
                FlipBarItem(icon: Icon(Icons.print), text: Text("Print"), frontColor: Colors.pink, backColor: Colors.pinkAccent),
              ],
              onIndexChanged: (newIndex) {
                print(newIndex);
              },
            ),

More Repositories

1

FlutterSolitaire

A Solitaire clone made in Flutter.
Dart
244
star
2

flutter_chess_board

A Chessboard widget for Flutter.
Dart
184
star
3

MetaFlutter

A tool to build Flutter layouts on-device
Dart
160
star
4

YouTubeFlutter

A Flutter recreation of the YouTube app
Dart
135
star
5

WhatsappFlutter

A recreation of the Whatsapp Android app on Flutter
Dart
118
star
6

FlutterMinesweeper

A Minesweeper clone made in Flutter
Dart
90
star
7

shake

A flutter package for detecting phone shakes.
Dart
87
star
8

FlutterGREWords

An app to learn new words for the GRE examination and demostrate Flutter PageViews.
Dart
84
star
9

FlutterAdaptiveLayouts

Source code for designing Flutter layouts for different layouts and orientations
Dart
82
star
10

TODOAppUI

TODO App Concept UI
Dart
72
star
11

ez_animation

Easy Animations - No Controllers, No Tickers, Only the necessary parts.
Dart
71
star
12

MediumAppFlutter

Flutter recreation of the UI of the Medium android app
Dart
60
star
13

etch

A Simplified, Declarative Way To Use CustomPaint In Flutter
Dart
59
star
14

TwitterFlutter

A recreation of the Twitter UI in Flutter
Dart
59
star
15

FlutterChess

A concept Chess app for Flutter.
Dart
51
star
16

expanding_bottom_bar

BottomNavigationBar for Flutter with expanding titles
Dart
39
star
17

flutter_randomize

(Flutter Create Submission) Flutter Randomize is an application that builds random Flutter layouts when the device is shaken.
Dart
25
star
18

illume

A Widget-based Game Engine For Flutter
Dart
24
star
19

easy_pip

A package for Flutter to construct Picture-In-Picture interfaces
Dart
22
star
20

power_tic_tac_toe

A Modern Tic Tac Toe Game
Dart
22
star
21

passcode

A Flutter widget to enter passcodes.
Dart
21
star
22

AnimatedWidgetsFlutter

Sample code for exploring implicity animated widgets in Flutter.
Dart
17
star
23

simple_flutter_animation

Creating a basic animation for Flutter
Dart
12
star
24

raw_gnss

Dart
10
star
25

stream_chess_demo

A Demo On Adding Chess To The stream_chat_flutter Package
Dart
6
star
26

PuneHealth

Idea for Pune Smart City Hackathon
Dart
5
star
27

SE_A_Projects

C++
3
star
28

deven98

2
star
29

RPG

Python
1
star
30

TicTacToeML

Python
1
star
31

BakingAppUdacity

Project for Udacity Android Nanodegree
Java
1
star
32

UdacityPopularMoviesP1

Project 1 for Udacity Android Nanodegree
Java
1
star
33

ExpenseManager

Java
1
star
34

PopularMoviesStage2

Java
1
star
35

VehicleTracking

Java
1
star
36

TicTacToeAI

Making a program determining the best way to win tic tac toe
Python
1
star
37

Barcode

Java
1
star
38

HackathonPune2017Team49

Java
1
star