Update wind_speed_monitoring_screen.dart
This commit is contained in:
parent
692244f59c
commit
196c5363dc
|
|
@ -326,15 +326,15 @@ class _WindSpeedMonitoringScreenState extends State<WindSpeedMonitoringScreen> {
|
||||||
vertical: 5,
|
vertical: 5,
|
||||||
),
|
),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: Colors.amber.shade100,
|
color: _isOnline ? Colors.green.shade100 : Colors.red.shade100,
|
||||||
borderRadius: BorderRadius.circular(20),
|
borderRadius: BorderRadius.circular(20),
|
||||||
),
|
),
|
||||||
child: const Text(
|
child: Text(
|
||||||
"Normal",
|
_isOnline ? "ONLINE" : "OFFLINE",
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 11,
|
fontSize: 11,
|
||||||
fontWeight: FontWeight.w600,
|
fontWeight: FontWeight.w600,
|
||||||
color: Colors.amber,
|
color: _isOnline ? Colors.green : Colors.red,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue