PageView와 같은 스크롤 가능한 위젯 내 현재 위치를 표시하기 위한 시각적 점 인디케이터를 제공하는 플러터 패키지입니다. 사용자가 페이지 또는 슬라이드 시퀀스에서의 진행 상황을 이해할 수 있도록 하며, 사용자 정의 가능한 점의 외관과 동작을 지원합니다. 다양한 테마, 크기 및 애니메이션을 지원하여 온보딩 화면, 이미지 슬라이더 및 안내 투어에 적합합니다. 가볍고 모든 주요 플랫폼과 호환됩니다.
사용 사례
온보딩 화면
이미지 슬라이더
가이드 투어
폼 마법사
카루셀 탐색
슬라이드 쇼 지시기
주요 기능
사용자 정의 가능한 점 크기 및 색상
페이지 간 부드러운 애니메이션
여러 테마를 지원합니다
반응형 디자인
PageView와의 간편한 통합
Platform-agnostic
적합한 대상
모바일 앱 개발자
UI/UX 디자이너
온보딩 흐름
인터랙티브 튜토리얼
다중 페이지 콘텐츠 표시
고려 사항
PageView와 수동 동기화 필요
스타일링을 넘어서는 사용자 정의가 제한적
내장된 스와이프 제스처 없음
스크롤되지 않는 콘텐츠에는 적합하지 않습니다
추가 상태 관리가 필요할 수 있습니다
원본 README
연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.
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.