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

.

parent 2421f3e8
...@@ -39,26 +39,13 @@ class _DeviceOnlineRateState extends State<DeviceOnlineRate> { ...@@ -39,26 +39,13 @@ class _DeviceOnlineRateState extends State<DeviceOnlineRate> {
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Row( Text(
mainAxisAlignment: MainAxisAlignment.spaceBetween, rateData['title'] as String,
children: [ style: TextStyle(
Text( fontSize: 18.sp,
rateData['title'] as String, fontWeight: FontWeight.bold,
style: TextStyle( color: Colors.white,
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),
),
),
],
), ),
SizedBox(height: 20.h), SizedBox(height: 20.h),
Row( Row(
...@@ -78,11 +65,13 @@ class _DeviceOnlineRateState extends State<DeviceOnlineRate> { ...@@ -78,11 +65,13 @@ class _DeviceOnlineRateState extends State<DeviceOnlineRate> {
value: rateData['rate'] as double, value: rateData['rate'] as double,
color: Color.fromRGBO(34, 197, 94, 1), color: Color.fromRGBO(34, 197, 94, 1),
radius: 15, radius: 15,
title: '',
), ),
PieChartSectionData( PieChartSectionData(
value: 1 - (rateData['rate'] as double), value: 1 - (rateData['rate'] as double),
color: Color.fromRGBO(51, 65, 85, 1), color: Color.fromRGBO(51, 65, 85, 1),
radius: 15, radius: 15,
title: '',
), ),
], ],
centerSpaceRadius: 50.w, 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