v1.1.1pie_chart_sz
一個用於建立美觀間隔餅圖組件的 Flutter 套件
10喜歡 44近 30 天下載135Pub 分數
AndroidiOSWebmacOSWindowsLinux
Flutter 環形餅圖
{"sdk":"flutter"}{"sdk":"flutter"}^5.0.0以下為英文專案原文快照,最新內容請造訪 GitHub。
This Flutter package provides a donut Chart Widget
In the dependencies: section of your pubspec.yaml, add the following line:
dependencies:
pie_chart_sz: <latest version>
import 'package:pie_chart/pie_chart.dart';
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,
),
),
)
Valuesettings(
showValues: true,
ValueTextStyle: TextStyle(
fontSize: 14,
fontWeight: FontWeight.bold,
color: Colors.black,
),
)
PieChart