material_charts 0.0.3 copy "material_charts: ^0.0.3" to clipboard
material_charts: ^0.0.3 copied to clipboard

A flutter library for creating and manage industrial standard charts

Hollow Semi Circle Meter #

A customizable Flutter widget for displaying progress or percentages in a hollow semi-circle meter format.

Features #

  • Animated semi-circle meter with customizable colors and sizes
  • Supports both active and inactive segments
  • Displays percentage value in the center
  • Optional legend items for active and inactive segments
  • Smooth animation when updating values

Getting Started #

Add the package to your project's pubspec.yaml file:

Usage #

Example usage:

HollowSemiCircleMeter(
    labelStatus: false, // Mnetion the boolean value for showing the default labels
    percentage: 65, // Mention the percentage
    activeColor: PrefColor.primaryColor, //Choose the color of the active segment
    inactiveColor: Colors.grey.shade200, //Choose the color of the inactive segment
    size: 300, //Choose the size of the chart
    hollowRadius: 0.6, // Controls how hollow the center is (0.1 to 0.9)
),

You can customize various properties of the meter:

  • percentage: The percentage value to display (0-100)
  • activeColor: Color for the active segment
  • inactiveColor: Color for the inactive segment
  • size: Overall size of the widget
  • hollowRadius: Radius of the inner hole (as a fraction of the outer radius)
  • labelStatus: Whether to show legend items below the meter

The widget supports animation when updating the percentage value.

Additional Information #

  • This package uses Flutter's CustomPainter to draw the semi-circle meter.
  • It's designed to be flexible and customizable to fit various design needs.
  • Contributions and feature requests are welcome. Please file issues or pull requests on the GitHub repository.

For more information about the package, including API documentation and example usage, please visit the GitHub repository.

License

7
likes
0
pub points
44%
popularity

Publisher

unverified uploader

A flutter library for creating and manage industrial standard charts

Homepage

License

unknown (license)

Dependencies

flutter

More

Packages that depend on material_charts