From d19c5fcaf8f28fed989923ac8febded0576f3675 Mon Sep 17 00:00:00 2001 From: kleponijo <158453666+kleponijo@users.noreply.github.com> Date: Sat, 2 May 2026 10:46:03 +0700 Subject: [PATCH] oke --- lib/screens/home/widgets/sensor_grid.dart | 77 ----------------------- 1 file changed, 77 deletions(-) diff --git a/lib/screens/home/widgets/sensor_grid.dart b/lib/screens/home/widgets/sensor_grid.dart index 86500cd..83ea239 100644 --- a/lib/screens/home/widgets/sensor_grid.dart +++ b/lib/screens/home/widgets/sensor_grid.dart @@ -50,68 +50,6 @@ class SensorGrid extends StatelessWidget { ), ), - // --- SUHU AIR (dari Evaporasi) --- - BlocBuilder( - builder: (context, state) => SensorCard( - width: cardWidth, - icon: Icons.thermostat_outlined, - iconColor: Colors.orange.shade600, - iconBgColor: Colors.orange.shade50, - label: 'Suhu Air', - value: state.isLoading - ? '—' - : state.temperature.toStringAsFixed(1), - unit: '°C', - isLoading: state.isLoading, - ), - ), - - // --- TINGGI AIR (dari Evaporasi) --- - BlocBuilder( - builder: (context, state) => SensorCard( - width: cardWidth, - icon: Icons.straighten_outlined, - iconColor: Colors.cyan.shade600, - iconBgColor: Colors.cyan.shade50, - label: 'Tinggi Air', - value: - state.isLoading ? '—' : state.waterLevel.toStringAsFixed(1), - unit: 'cm', - isLoading: state.isLoading, - ), - ), - - // --- SUHU UDARA (dari Atmospheric) --- - BlocBuilder( - builder: (context, state) => SensorCard( - width: cardWidth, - icon: Icons.device_thermostat, - iconColor: Colors.red.shade400, - iconBgColor: Colors.red.shade50, - label: 'Suhu Udara', - value: state.isLoading - ? '—' - : state.temperature.toStringAsFixed(1), - unit: '°C', - isLoading: state.isLoading, - ), - ), - - // --- KELEMBAPAN --- - BlocBuilder( - builder: (context, state) => SensorCard( - width: cardWidth, - icon: Icons.water_outlined, - iconColor: Colors.indigo.shade400, - iconBgColor: Colors.indigo.shade50, - label: 'Kelembapan', - value: - state.isLoading ? '—' : state.humidity.toStringAsFixed(1), - unit: '%', - isLoading: state.isLoading, - ), - ), - // --- TEKANAN UDARA --- BlocBuilder( builder: (context, state) => SensorCard( @@ -126,21 +64,6 @@ class SensorGrid extends StatelessWidget { isLoading: state.isLoading, ), ), - - // --- KETINGGIAN --- - BlocBuilder( - builder: (context, state) => SensorCard( - width: cardWidth, - icon: Icons.terrain_outlined, - iconColor: Colors.green.shade600, - iconBgColor: Colors.green.shade50, - label: 'Ketinggian', - value: - state.isLoading ? '—' : state.altitude.toStringAsFixed(1), - unit: 'm', - isLoading: state.isLoading, - ), - ), ], ); },