circulito 0.0.2 circulito: ^0.0.2 copied to clipboard
Circulito provides a simple circular wheel chart for visualizing data using percentages and colors.
Circulito #
Circulito provides a simple circular wheel chart for visualizing data using percentages and colors.
Display circular wheel charts with customizable sections. Easily visualize data by providing percentages and corresponding colors.
Getting started #
Add the package to your pubspec.yaml file:
dependencies:
circulito: ^0.0.2
Usage #
Use the Circulito widget in your Flutter app:
Circulito(
maxSize: 500,
strokeWidth: 50,
backgroundColor: Colors.grey,
padding: const EdgeInsets.all(20),
strokeCap: CirculitoStrokeCap.round,
sections: [
// Male percentage.
CirculitoSection(color: Colors.blue, percentage: 0.45),
// Female percentage.
CirculitoSection(color: Colors.pink, percentage: 0.35),
],
),
Parameters #
maxSize
: The maximum size the widget can grow inside its parent.
strokeWidth
: The width of the stroke that defines the chart's outline.
strokeCap
: The type of cap to use for the stroke (round or butt).
backgroundColor
: The background color of the wheel to be painted.
padding:
The padding to be applied to the widget.
sections
: A list of CirculitoSection objects representing each chart section.
isCentered:
Whether the widget should be centered or not inside the parent widget.
License #
This project is licensed under the MIT License - see the LICENSE file for details.