Buscar pacotes, repositórios e categorias de apps

Capa de bottom_bar_with_sheet
Detalhes do pacotev2.4.0

bottom_bar_with_sheet

Este pacote ajuda você a criar uma barra inferior com FloatingActionButton que exibe um widget BottomSheet em cada página.

AndroidiOSWebmacOSWindowsLinux
Downloads em 30 dias
505
Curtidas
613
Pontos Pub
150

Instalar pacote

flutter pub add bottom_bar_with_sheet

Visão geral do pacote

Orientação gerada a partir de informações públicas. Apenas para referência.

O pacote bottom_bar_with_sheet simplifica a criação de uma barra de navegação inferior associada a um FloatingActionButton que dispara uma BottomSheet em qualquer página. Ele simplifica a navegação e o acesso a conteúdo adicional de forma consistente e amigável ao usuário em todas as plataformas. Ideal para aplicativos que precisam de acesso rápido a ações ou menus sem sair da tela atual. O pacote suporta todas as principais plataformas, incluindo Android, iOS, Web, macOS, Windows e Linux.

Casos de uso

  • Acesso rápido às ações por meio do BottomSheet
  • Navegação consistente em várias páginas
  • Melhorando a interação do usuário com a ação flutuante
  • Integrando menus contextuais em aplicativos
  • Construindo interfaces responsivas com foco em dispositivos móveis

Principais recursos

  • Integração com BottomNavigationBar
  • FloatingActionButton dispara o BottomSheet
  • Suporte multiplataforma
  • API simples para configuração
  • Estrutura de componente reutilizável

Indicado para

  • Desenvolvedores de aplicativos móveis
  • Designers de UI/UX em busca de consistência
  • Aplicativos que exigem acesso frequente a ações
  • Desenvolvedores usando o Flutter para aplicativos multiplataforma
  • Projetos com necessidades complexas de navegação

Considerações

  • Pode exigir estilização personalizada para designs únicos
  • Limitado apenas à funcionalidade de BottomSheet
  • Depende do sistema de design Material do Flutter
  • Não adequado para interações não em folha inferior
  • Impacto potencial no desempenho com muitas planilhas aninhadas

README original

Snapshot do README original do repositório-fonte vinculado. Consulte o repositório para o conteúdo mais recente.

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.

Categorias

Repositório-fonte

Projetos que usam este pacote

Ainda não há dados.