FLUTTER ECOSYSTEM

tuannvm2109/bottom_bar_matu

Um pacote de barra de navegação inferior bonita e animada para o flutter

Capa do projeto bottom_bar_matu
Stars
24
Forks
5
Último push (UTC)
10 de mai. de 2024
Status do projeto
Ativo
Mạnh Tuấn GitHub avatar
GITHUB User

Mạnh Tuấn ↗

Flutter Developer

LinguagensDartC++CMakeHTMLCSwiftKotlinObjective-C

Pacotes publicados por este repositório

Dependências usadas

Lista de dependências 3 itens
  • flutter{"sdk":"flutter"}
  • flutter_testDesenvolvimento{"sdk":"flutter"}
  • flutter_lintsDesenvolvimento^2.0.0

README original

Texto original em inglês. Visite o GitHub para a versão atual.

Expandir / recolher README

A beautiful and animated bottom navigation bar.

Here are some supported style:

BottomBarBubble

DEMO

BottomBarDoubleBullet

DEMO

BottomBarLabelSlide

DEMO

Usage

Simple implementation with Icons.data:
bottomNavigationBar: BottomBarBubble(
    selectedIndex: _index,
    items: [
        BottomBarItem(iconData: Icons.home),
        BottomBarItem(iconData: Icons.chat),
        BottomBarItem(iconData: Icons.notifications),
        BottomBarItem(iconData: Icons.calendar_month),
        BottomBarItem(iconData: Icons.settings),
    ],
    onSelect: (index) {
      // implement your select function here
    },
),
Implementation with your custom widget:
bottomNavigationBar: BottomBarBubble(
    selectedIndex: _index,
    items: [
        BottomBarItem(
          iconBuilder: (color) => Image.asset('assets/ic_alarm.png', color: color, height: 30, width: 30)),
        BottomBarItem(
          iconBuilder: (color) => Image.asset('assets/ic_bill.png', color: color, height: 30, width: 30)),
        BottomBarItem(
          iconBuilder: (color) => Image.asset('assets/ic_box.png', color: color, height: 30, width: 30)),
    ],
    onSelect: (index) {
      // implement your select function here
    },
),

License

Copyright (c) 2021 Tuannvm

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.