This repository is a collection of Flutter package usage examples.
Each folder or screen demonstrates the implementation and usage of popular Flutter packages with clean code and detailed explanations.
In this example, we have used the pie_chart package to display different types of Pie Charts in Flutter.
-
Disc Pie Chart
- Standard pie chart that displays data in a full circle.
- Each slice represents the percentage share of a category.
- Example use case: Market share, demographics, etc.
-
Ring Pie Chart (Donut Style)
- Modern donut-style chart using
chartType: ChartType.ring. - Adjustable ring thickness with
ringStrokeWidth. - Example use case: Dashboards, financial apps, etc.
- Modern donut-style chart using
-
Gradient Pie Chart
- Beautiful, gradient-colored pie chart using
gradientList. - Ideal for UI-rich apps where design aesthetics are a priority.
- Beautiful, gradient-colored pie chart using
Below is the output of the pie chart variations:
Add the pie_chart package to your pubspec.yaml file:
dependencies:
pie_chart: ^5.3.2