fancy_indicator 0.0.6 copy "fancy_indicator: ^0.0.6" to clipboard
fancy_indicator: ^0.0.6 copied to clipboard

fancy indicator.

fancy_indicator #

FancyIndicator Widget The FancyIndicator is a customizable Flutter widget that provides a visual indicator with gradient colors, labels, and a dynamic animation. It can be used to create interactive indicators for selecting a value by tapping or dragging.

Showcase #

Fancy Indicator Example 1 Fancy Indicator Example 2

Usage example #

Import the package in your Dart code:

https://pub.dev/packages/fancy_indicator

FancyIndicator properties #


const FancyIndicator({
  Key? key,
  required List<Color> gradientColors,
  required List<double> gradientColorsStops,
  required double width,
  required double height,
  required Function(int indicatorNumber) onSelectedNumber,
  List<int> marker = const [],
  Color labelTextColor = FancyIndicatorUtils.whiteColor,
  Color selectedTextColor = FancyIndicatorUtils.blueColor,
  Color measureItemColor = FancyIndicatorUtils.yellowColor,
  Color backgroundColor = FancyIndicatorUtils.primaryColor,
  String numberAppendix = "%",
})

Parameters #

  • gradientColors (List

  • gradientColorsStops (List

  • width (double): The width of the indicator widget.

  • height (double): The height of the indicator widget.

  • onSelectedNumber (Function(int)): Callback function triggered when a number is selected via dragging or tapping.

  • marker (List

  • labelTextColor (Color): The color of the labels for the indicator. Default is FancyIndicatorUtils.whiteColor.

  • selectedTextColor (Color): The color of the selected label text. Default is FancyIndicatorUtils.blueColor.

  • measureItemColor (Color): The color used for the measurement items in the indicator. Default is FancyIndicatorUtils.yellowColor.

  • backgroundColor (Color): The background color of the indicator widget. Default is FancyIndicatorUtils.primaryColor.

  • numberAppendix (String): The string appended to the selected number in the indicator. Default is "%".

12
likes
0
points
19
downloads

Publisher

unverified uploader

Weekly Downloads

fancy indicator.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on fancy_indicator