v1.1.1pie_chart_sz
아름다운 간격 있는 파이 차트 위젯을 생성하기 위한 플러터 패키지
10좋아요 4430일 다운로드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