FLUTTER ECOSYSTEM

Rezgar01m/pie_chart_sz

Gráfico de pizza com formato de donut no Flutter

Capa do projeto gráfico_de_pizza_sz
Stars
1
Forks
0
Último push (UTC)
21 de fev. de 2025
Status do projeto
Ativo
Rezgar01 GitHub avatar
GITHUB User

Rezgar01 ↗

java and c++ developer Gmail: rezgar.sasr@gmail.com

zrKurdistan/bukan
LinguagensC++CMakeDartSwiftCHTMLKotlinObjective-C

Pacotes publicados por este repositório

Dependências usadas

Lista de dependências 3 itens
  • flutter{"sdk":"flutter"}
  • flutter_testDesenvolvimento{"sdk":"flutter"}
  • flutter_lintsDesenvolvimento^5.0.0

README original

Texto original em inglês. Visite o GitHub para a versão atual.

Expandir / recolher README

spaced Pie Chart / pie_chart_sz Cirrus CI - Base Branch Build Status GitHub stars GitHub last commit Open Source Love

This Flutter package provides a donut Chart Widget

Installation

In the dependencies: section of your pubspec.yaml, add the following line:

Version

dependencies:
  pie_chart_sz: <latest version>

Usage

Import this class
import 'package:pie_chart/pie_chart.dart';
this a simple example code to use this package
PieChart
List<Color>? colors = [
  Colors.purple,
  Colors.blue,
  Colors.orange,
  Colors.red,
  Colors.teal,
];

List<double>? values = [
  50,
  20,
  20,
  5,
  5,
];

PieChartSz(
colors: colors,
values: values,
gapSize: 0.2,
centerText: "center text",
centerTextStyle: TextStyle(
fontSize: 20,
fontWeight: FontWeight.bold,
color: Colors.black,
),
valueSettings: Valuesettings(
showValues: false,
ValueTextStyle: TextStyle(
fontSize: 14,
fontWeight: FontWeight.bold,
color: Colors.black,
),
),
)

Features

show values with 'showValues'
Valuesettings(
showValues: true,
ValueTextStyle: TextStyle(
fontSize: 14,
fontWeight: FontWeight.bold,
color: Colors.black,
),
)
PieChart