Orientação gerada a partir de informações públicas. Apenas para referência.
Um pacote Flutter que fornece um indicador visual de pontos para exibir a posição atual em um widget rolável como PageView. Ajuda os usuários a entenderem seu progresso por uma sequência de páginas ou slides com aparência e comportamento dos pontos personalizáveis. O indicador suporta vários temas, tamanhos e animações, tornando-o ideal para telas de introdução, carrosséis de imagens e tours guiados. É leve e compatível com todas as principais plataformas.
Casos de uso
Telas de onboarding
Controles deslizantes de imagem
Visitas guiadas
Assistentes de formulários
Navegação de carrossel
indicadores de apresentação de slides
Principais recursos
Tamanho e cor de ponto personalizáveis
Animação suave entre páginas
Suporta múltiplos temas
Design responsivo
Integração fácil com PageView
Platform-agnostic
Indicado para
desenvolvedores de aplicativos móveis
designers de UI/UX
Fluxos de onboarding
Tutoriais interativos
Conteúdo multi-página é exibido
Considerações
Requer sincronização manual com PageView
Personalização limitada além da estilização
Sem gestos de deslize embutidos
Não adequado para conteúdo não rolagem
Pode ser necessário gerenciamento adicional de estado
README original
Snapshot do README original do repositório-fonte vinculado. Consulte o repositório para o conteúdo mais recente.
dots_indicator
Widget to display dots indicator to show a position (for a PageView for example).
Breaking change in 5.0.0: this package now uses the standalone
material_ui package instead of
package:flutter/material.dart. Your app must also use material_ui (or
keep the deprecated MaterialUiCompatibilityBridge), otherwise tapping a
dot (onTap) throws No Material widget found. Requires Flutter
>=3.44.0 and Dart ^3.12.0. See the CHANGELOG for
details.
Quick start
The typical use case is to pair DotsIndicator with a PageView, syncing
position to the controller's current page:
You can change the default size of dots and also shape.
So you can choose to have a shape for inactive dots and another shape for the active dot for example. By default, the shape of dots are CircleBorder, so to have a rounded rectangle for active one, you need to change activeShape
By default a dot have a margin of 6 pixels on his left and right. It's EdgeInsets.symmetric(horizontal: 6.0).
But if you want you can change it, for example to increase the space between dots or to add top margin.
There is two other property, axis and reversed.
Axis is to display dots indicator horizontally (default) or vertically.
Also, you can set reversed: true to reverse the order of dots. (default: false).
For example, if you want to display the dots indicator vertically, but with the first dots on bottom :
Set axis: Axis.vertical and reversed: true.
Obviously, you can use reversed with Axis.horizontal.
When dotsCount is large (or unknown), showing every dot isn't practical.
Set fadeOutLastDot: true with a fadeOutDistance to only keep a window of
dots fully visible around the current position, fading the rest out — and
animate: true to transition smoothly as position changes.