FLUTTER ECOSYSTEM

Rezgar01m/pie_chart_sz

Flutter 环形饼图

饼图_sz 项目封面
Stars
1
Forks
0
最近推送(UTC)
2025年2月21日
项目状态
未归档
Rezgar01 GitHub avatar
GITHUB User

Rezgar01 ↗

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

zrKurdistan/bukan
语言C++CMakeDartSwiftCHTMLKotlinObjective-C

此仓库发布的插件

使用的依赖

依赖清单 3 项
  • flutter{"sdk":"flutter"}
  • flutter_test开发依赖{"sdk":"flutter"}
  • flutter_lints开发依赖^5.0.0

原始 README

以下为英文项目原文快照,最新内容请访问 GitHub。

展开 / 收起项目 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