Commit 1886010b authored by 张宏's avatar 张宏

.

parent 2421f3e8
......@@ -39,26 +39,13 @@ class _DeviceOnlineRateState extends State<DeviceOnlineRate> {
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
rateData['title'] as String,
style: TextStyle(
fontSize: 18.sp,
fontWeight: FontWeight.bold,
color: Colors.white,
),
),
Text(
rateData['rateText'] as String,
style: TextStyle(
fontSize: 18.sp,
fontWeight: FontWeight.bold,
color: Color.fromRGBO(34, 197, 94, 1),
),
),
],
Text(
rateData['title'] as String,
style: TextStyle(
fontSize: 18.sp,
fontWeight: FontWeight.bold,
color: Colors.white,
),
),
SizedBox(height: 20.h),
Row(
......@@ -78,11 +65,13 @@ class _DeviceOnlineRateState extends State<DeviceOnlineRate> {
value: rateData['rate'] as double,
color: Color.fromRGBO(34, 197, 94, 1),
radius: 15,
title: '',
),
PieChartSectionData(
value: 1 - (rateData['rate'] as double),
color: Color.fromRGBO(51, 65, 85, 1),
radius: 15,
title: '',
),
],
centerSpaceRadius: 50.w,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment