knight_page_indicator 0.0.1 copy "knight_page_indicator: ^0.0.1" to clipboard
knight_page_indicator: ^0.0.1 copied to clipboard

A simple widget to display indicators embedded with different styles.

A simple widget to display indicators embedded with different styles.

Usage #

Two required arguments are the current and totalCount. Pass the current index to the argument "current" and your total length to the argument "totalCount". You can change the indicator style using the argument "style".


import 'package:knight_page_indicator/knight_page_indicator.dart';

IndicatorLayout(
style: IndicatorStyle.circle,
attribute: IndicatorAttributes(),
current: yourCurrentIndex(),
totalCount: yourLength()
);

Available attributes #

Attributes Type Description
unselectedBackgroundColor Color? Background color of the unselected / default indicator.
selectedBackgroundColor Color? Background color of the selected / focused indicator.
unselectedBorderColor Color? Border color of the unselected / default indicator.
selectedBorderColor Color? Border color of the selected / focused indicator.
borderSize double? Border size of the indicator.
size double? Size of the indicator.
animationDuration Duration? Transition duration between indicators.

Author #

This plugin is developed by Atirek Pothiwala.

1
likes
0
points
33
downloads

Publisher

unverified uploader

Weekly Downloads

A simple widget to display indicators embedded with different styles.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on knight_page_indicator