• Stars
    star
    359
  • Rank 114,794 (Top 3 %)
  • Language
    Dart
  • License
    Apache License 2.0
  • Created almost 4 years ago
  • Updated about 2 years ago

Reviews

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

Repository Details

🚀 Flutter custom BottomBar Navigation Widget

Bottom bar with Sheet

Build Status License Pub Stars

Pub likes Pub popularity Pub points

💥Non-standard way to use more space of screens in your application💥
😳Custom bottom Sheet under Bottom Navigation Bar😳
😩Sounds sucks? 😉 First of all look at screens!

Image Image Image Image

Table of Content


Getting Started

Add dependency

dependencies:
  bottom_bar_with_sheet: ^2.4.0

Add import package

import 'package:bottom_bar_with_sheet/bottom_bar_with_sheet.dart';

Easy to use

Create a Scaffold widget and set bottomNavigationBar with BottomBarWithSheet like in the code below

Scaffold(
  bottomNavigationBar: BottomBarWithSheet(
    controller: _bottomBarController,
    bottomBarTheme: const BottomBarTheme(
      decoration: BoxDecoration(color: Colors.white),
      itemIconColor: Colors.grey,
    ),
    items: const [
      BottomBarWithSheetItem(icon: Icons.people),
      BottomBarWithSheetItem(icon: Icons.favorite),
    ],
  ),
);

More examples you can see here


Attributes

Attribute Type Annotation
autoClose bool If true the [BottomBarWithSheetItem]'s DO NOT automatically close the child sheet when pressed
disableMainActionButton bool disable MainActionButton if true , enable if false
sheetChild Widget that displayed on bottom of BottomBarWithSheet when isOpened == true
items List BottomBarWithSheetItem navigation buttons of BottomBarWithSheet
bottomBarTheme BottomBarTheme theme of BottomBarWithSheet
mainActionButtonTheme MainActionButtonTheme theme of Main Action Button
onSelectItem Function Callback Function works by clicking on one of items Return int index of selected button
duration Duration animation time of closing / opening BottomBarWithSheet
curve Curve the style of animation from the suggested ones of Curve
bottomBarMainAxisAlignment MainAxisAlignment The direction in which the widget content will line up
mainActionButtonBuilder MainActionButton Custom version of Main Action Button

Attributes of BottomBarTheme

Attribute Type Annotation
height double BottomBarWithSheet icons line height
heightOpened double BottomBarWithSheet height when isOpened == true
heightClosed double BottomBarWithSheet height when isOpened == false
decoration BoxDecoration decoration of BottomBarWithSheet
contentPadding EdgeInsets create padding between content of widget and sides
backgroundColor Color BottomBarWithSheet background color
selectedItemIconColor Color selected item icon color
itemIconColor Color unselected item icon color
selectedItemTextStyle Color selected item text style
itemTextStyle Color unselected item text style
selectedItemIconSize double size of item icon when item is pressed
mainButtonPosition enum filed that response for the position of MainActionButton position this field have 3 possible values: MainButtonPosition.left, MainButtonPosition.right , MainButtonPosition.Center
isVerticalItemLabel bool makes the labels of the items appear vertically or horizontally

Attributes of MainActionButtonTheme

Attribute Type Annotation
size double size of button
icon Widget icon that displayed in center of MainActionButton
color Color background color of widget circle
splash Color splash color of widget circle
margin EdgeInsets side paddings of Main Action Button
transform Matrix4 This field can set transform location of Main Action Button

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

More Repositories

1

group_button

💦 Flutter custom widget to make a group buttons. Included Radio and CheckBox buttons.
Dart
218
star
2

talker

☎️ Advanced error handler and logger for dart and flutter apps
Dart
211
star
3

sidebarx

Flutter multiplatform navigation sidebar / side navigation bar / drawer widget
Dart
184
star
4

flutter_json_view

📄 Displaying json models in a Flutter widget
Dart
61
star
5

flutter_admin

🐛 Flutter debug helper widget with common and custom actions [Work in progress]
Dart
44
star
6

flutter_tutorials

All source code from frezycode youtube channel tutorials
C++
24
star
7

animated_icon_button

🌈 Flutter package to create custom animated IconButton. Includes all available Icons.
Dart
21
star
8

awesome_flutter_extensions

A curated list of the most popular extensions for dart / Flutter development in various IDEs including Visual Studio Code, IntelliJ IDEA, and Android Studio
10
star
9

storage_view

Flutter inspector tool for any database, storage and shared_preferences.
C++
9
star
10

calorica

Calorie calculator app with selection individual diet written on Flutter dart
Dart
8
star
11

open_store

Simple Flutter package to open app page in store
C++
8
star
12

flutter-firebase-site

Simple web app written on dart with flutter and hosted on firebase hosting
C++
6
star
13

http_pagination

Parses a link header (web links) and returns pagination data
Dart
4
star
14

html_academy_solution

Автоматизированный бот, который решит за вас тренажеры из подборки HTML Academy.
Python
3
star
15

know-it-all

Google extension to search information about unknown words without leaving the page
PHP
2
star
16

motiv-hackathon-app

Dart
2
star
17

delau

Todo list app with ... soon
Dart
1
star
18

flutter-permission-handler

Permission plugin for Flutter. This plugin provides a cross-platform (iOS, Android) API to request and check permissions.
Dart
1
star