Orientação gerada a partir de informações públicas. Apenas para referência.
O pacote scrollable aprimora as capacidades de rolagem do Flutter com uma série de widgets personalizáveis. Inclui feedback háptico embutido, fechamento automático do teclado e melhor comportamento de rolagem entre plataformas. Projetado para desenvolvedores que buscam interações de rolagem refinadas, suporta todas as principais plataformas, incluindo Android, iOS, Web, macOS, Windows e Linux. O pacote expande os componentes centrais de ScrollView do Flutter com funcionalidades adicionais que melhoram a experiência do usuário sem comprometer desempenho ou flexibilidade.
Casos de uso
Melhorando interações de rolagem em formulários
Criando listas responsivas com feedback háptico
Construindo interfaces roláveis que fecham teclados
Melhorando a acessibilidade em conteúdo rolagem
Implementando rolagem suave em múltiplas plataformas
Principais recursos
Feedback tátil no rolagem
Dismissal automático do teclado
Comportamento de rolagem multiplataforma
Física de rolagem personalizável
indicadores de rolagem embutidos
arquitetura de widget extensível
Indicado para
Desenvolvedores criando interfaces de usuário interativas com rolagem
Aplicativos que exigem feedback tátil
aplicações com muitos formulários
Projetos Flutter multiplataforma
Designs focados em acessibilidade
Considerações
Requer conhecimento do sistema de rolagem do Flutter
Pode aumentar ligeiramente o tamanho do pacote
Documentação limitada além do uso básico
Não destinado a exibições simples de lista
Melhor usado com controladores de rolagem personalizados
README original
Snapshot do README original do repositório-fonte vinculado. Consulte o repositório para o conteúdo mais recente.
🔥 A powerful set of scrollable widgets: haptics, keyboard dismissing, and more 🔥
Highly reccomended to use ClampingScrollPhysics for the physics of whatever scrollable you're wrapping, as it works best with haptics.
child (required): This widget's child.
bubbleUpScrollNotifications: Whether the widget should bubble up scroll notifications, or block them.
heavyHapticsAtEdgeEnabled: When a scroll reaches the edge, if there should be a haptic effect emitted.
hapticEffectAtEdge: Which kind of haptic effect should be emitted when the scroll edge is reached?
hapticEffectDuringScroll: Which kind of haptic effect should be emitted during the scroll.
distancebetweenHapticEffectsDuringScroll: The distance, in pixels, that should be scrolled before emitting a new haptic scroll effect.
Keyboard Dismiss
KeyboardDismiss
child (required): This widget's child.
bubbleUpScrollNotifications: Whether the widget should bubble up scroll notifications, or block them.
closeKeyboardOnTap: If the keyboard should also be closed just on the widget being tapped.
closeKeyboardOnVerticalSwipe: If the keyboard should be closed when a vertical swipe occurs.
onKeyboardDismissed: Callback triggered when a dismiss occurs.
Scrollable View
ScrollableView
child (required): This widget's child.
controller (required): A ScrollController to manage the scrolling of the widget.
bubbleUpScrollNotifications: Whether the widget should bubble up scroll notifications, or block them.
closeKeyboardOnScroll: Whether the keyboard should be automatically closed on the widget being scrolled.
closeKeyboardOnTap: If the keyboard should also be closed just on the widget being tapped.
physics: Physics of the scroll view. Highly reccomended to use ClampingScrollPhysics as it works best with haptics.
scrollDirection: Direction of the scroll.
inlineBottomOrRightPadding: Inline padding of the scroll view. This is a clean substitute to having to add SizedBox widgets inside your scroll view. For the bottom (if vertical) or right (if horizontal) of the scroll view.
inlineTopOrLeftPadding: Inline padding of the scroll view. This is a clean substitute to having to add SizedBox widgets inside your scroll view. For the top (if vertical) or left (if horizontal) of the scroll view.
padding: Outer padding of the widget.
hapticsEnabled: If haptics should be enabled.
distancebetweenHapticEffectsDuringScroll: The distance, in pixels, that should be scrolled before emitting a new haptic scroll effect.
heavyHapticsAtEdgeEnabled: If the haptics when the edge of the scroll is reached should be enabled or not.
hapticEffectAtEdge: Which kind of haptic effect should be emitted when the scroll edge is reached?
hapticEffectDuringScroll: Which kind of haptic effect should be emitted during the scroll.
primary: Whether this is the primary scroll view associated with the parent PrimaryScrollController.
dragStartBehavior: Determines the way that drag start behavior is handled.
restorationId: Restoration ID to save and restore the scroll offset of the scrollable.
reverse: Whether the scroll view scrolls in the reading direction.
closeKeyboardOnVerticalSwipe: If the keyboard should be closed when a vertical swipe occurs.
Additional Info 📣
The package is always open to improvements, [suggestions](mailto:me@matthewtrent.me), and additions!
I'll look through PRs and issues as soon as I can!