Orientação gerada a partir de informações públicas. Apenas para referência.
Flutter Zoom Drawer é uma implementação de menu lateral (drawer) personalizável para aplicativos Flutter, oferecendo animações suaves de zoom e deslize. Ele proporciona uma experiência de navegação aprimorada com suporte para múltiplos tamanhos de tela e plataformas. O pacote permite que os desenvolvedores integrem facilmente um drawer responsivo com configuração mínima, ideal para interfaces modernas de aplicativos. Com opções de configuração intuitivas, ele suporta layouts verticais e horizontais de drawer, tornando-o adequado para diversas necessidades de design. Sua natureza leve garante desempenho em Android, iOS, Web, macOS, Windows e Linux.
Casos de uso
Navegação de aplicativo móvel
Layouts de painel da web
menus de aplicativos de desktop
painéis laterais personalizáveis
Componentes de interface interativa
Principais recursos
Animações suaves de zoom e deslize
Suporte para múltiplas plataformas
Posições de gavetas personalizáveis
Integração de design responsivo
API fácil de usar
Indicado para
Desenvolvedores procurando gavetas animadas
Aplicativos que exigem padrões modernos de navegação
Aplicações multiplataforma
Designers de interface querendo opções flexíveis de gaveta
Projetos com requisitos de layout complexos
Considerações
Pode exigir estilos adicionais para temas complexos
Impacto no desempenho em dispositivos de baixa potência com conteúdo pesado
Personalização interna limitada para gestos avançados
Não ideal para gavetas estáticas simples
Requer manipulação cuidadosa de navegadores aninhados
README original
Snapshot do README original do repositório-fonte vinculado. Consulte o repositório para o conteúdo mais recente.
Flutter Zoom Drawer
A Flutter package with custom implementation of the Side Menu (Drawer)
🌟 Getting Started
To start using this package, add flutter_zoom_drawer dependency to your pubspec.yaml
Controller to have access to the open/close/toggle function of the drawer
style
DrawerStyle
No
the drawer style to be displayed (check the DrawerStyle enum)
mainScreen
Widget
Yes
Screen containing the main content to display
menuScreen
Widget
Yes
Screen containing the menu/bottom screen
slideWidth
double
No
Sliding width of the drawer - defaults to 275.0
slideHeight
double
No
Sliding height of the drawer - defaults to 0.0
mainScreenScale
double
No
MainScreen scale - defaults to 0.3
borderRadius
double
No
Border radius of the slided content - defaults to 16.0
angle
double
No
Rotation angle of the drawer - defaults to -12.0 - should be 0.0 to -30.0
disableGesture
bool
No
Disable the home page swipe to open drawer gesture - defaults to false
drawerShadowsBackgroundColor
Color
No
Background color of the drawer shadows - defaults to white
showShadow
bool
No
Boolean, whether to show the drawer shadows - defaults to false
openCurve
Curve
No
open animation curve - defaults to Curves.easeOut
closeCurve
Curve
No
close animation curve - defaults to Curves.easeOut
mainScreenTapClose
bool
No
Close drawer when tapping mainScreen
mainScreenOverlayColor
Color
No
Color of the main screen's cover overlay
overlayBlend
BlendMode
No
The BlendMode of the mainScreenOverlayColor filter (default BlendMode.screen)
boxShadow
BoxShadow
No
The Shadow of the mainScreenContent
overlayBlur
double
No
The Blur amount of the mainScreen option
shrinkMainScreen
bool
No
Shrinks the mainScreen by [slideWidth], good on desktop with Style2
drawerStyleBuilder
DrawerStyleBuilder
No
Build custom animated style to override [DrawerStyle]
🕹️ Drawer Usage
To use the drawer, and be able to control it, there are 2 ways:
Using a ZoomDrawerController inside the main widget where you have the ZoomDrawer widget and providing it to the widget, which will allow you to trigger the open/close/toggle methods.
final drawerController = ZoomDrawerController();
drawerController.open();
drawerController.close();
drawerController.toggle();
drawerController.isOpen();
drawerController.stateNotifier;
Using the static method inside ancestor widgets to get access to the ZoomDrawer.
Please file any issues, bugs or feature request as an issue on our GitHub page.
Want to contribute
If you would like to contribute to the plugin (e.g. by improving the documentation, solving a bug or adding a cool new feature), please carefully review our contribution guide and send us your pull request.
Credits
Credits goes to pedromassango as most of this package comes from his implementation.