page_view_dot_indicator 0.1.0-nullsafety.0 copy "page_view_dot_indicator: ^0.1.0-nullsafety.0" to clipboard
page_view_dot_indicator: ^0.1.0-nullsafety.0 copied to clipboard

outdated

A simple and animated page view indicator in the form of dots, which you can customise color, size, space and duration.

Page view dot indicator #

This lib draws a simple dot indicator for page views with a simple API. Right now it is able to draw dots with custom size, colors, spacing and duration. Besides that it also handles overflow by fading the edges if there are more dots than the width of the page allows.

Getting Started #

Add page_view_dot_indicator to your pubspec.yaml:

dependencies:
  page_view_dot_indicator: ^0.1.0-nullsafety.0

import package:page_view_dot_indicator/page_view_dot_indicator.dart

Most basic dot indicator #

PageViewDotIndicator(
  currentItem: selectedPage,
  count: pageCount,
  unselectedColor: Colors.black26,
  selectedColor: Colors.blue,
)

But you can also customise other parameters, such as: #

PageViewDotIndicator(
  currentItem: selectedPage,
  count: pageCount,
  unselectedColor: Colors.black26,
  selectedColor: Colors.blue,
  size = const Size(12, 12),
  unselectedSize = const Size(8, 8),
  duration = const Duration(milliseconds: 200),
  margin = const EdgeInsets.symmetric(horizontal: 8),
)
59
likes
0
pub points
96%
popularity

Publisher

unverified uploader

A simple and animated page view indicator in the form of dots, which you can customise color, size, space and duration.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on page_view_dot_indicator