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

.

parent 2421f3e8
...@@ -39,9 +39,6 @@ class _DeviceOnlineRateState extends State<DeviceOnlineRate> { ...@@ -39,9 +39,6 @@ class _DeviceOnlineRateState extends State<DeviceOnlineRate> {
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text( Text(
rateData['title'] as String, rateData['title'] as String,
style: TextStyle( style: TextStyle(
...@@ -50,16 +47,6 @@ class _DeviceOnlineRateState extends State<DeviceOnlineRate> { ...@@ -50,16 +47,6 @@ class _DeviceOnlineRateState extends State<DeviceOnlineRate> {
color: Colors.white, 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(
children: [ children: [
...@@ -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