Revert "Evaporasi list: show evaporasi + suhu with firebase timestamp"
This reverts commit 2675ed7bd4.
This commit is contained in:
parent
6a6b6a43cd
commit
b5539715f3
|
|
@ -310,11 +310,8 @@ class EvaporasiScreen extends StatelessWidget {
|
||||||
separatorBuilder: (_, __) => const Divider(height: 1),
|
separatorBuilder: (_, __) => const Divider(height: 1),
|
||||||
itemBuilder: (context, index) {
|
itemBuilder: (context, index) {
|
||||||
final e = data[index];
|
final e = data[index];
|
||||||
final dateLabel = DateFormat('dd MMM yyyy', 'id_ID')
|
final dateLabel = DateFormat('dd MMM yyyy HH:mm:ss', 'id_ID')
|
||||||
.format(e.timestamp) +
|
.format(e.timestamp);
|
||||||
' • ' +
|
|
||||||
DateFormat('HH:mm:ss', 'id_ID').format(e.timestamp);
|
|
||||||
|
|
||||||
return Padding(
|
return Padding(
|
||||||
padding: const EdgeInsets.symmetric(vertical: 10),
|
padding: const EdgeInsets.symmetric(vertical: 10),
|
||||||
child: Row(
|
child: Row(
|
||||||
|
|
@ -331,27 +328,13 @@ class EvaporasiScreen extends StatelessWidget {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(width: 12),
|
const SizedBox(width: 12),
|
||||||
Column(
|
Text(
|
||||||
crossAxisAlignment: CrossAxisAlignment.end,
|
'${e.evaporasi.toStringAsFixed(1)} mm',
|
||||||
children: [
|
style: const TextStyle(
|
||||||
Text(
|
fontSize: 13,
|
||||||
'${e.evaporasi.toStringAsFixed(1)} mm',
|
fontWeight: FontWeight.w700,
|
||||||
style: const TextStyle(
|
color: Colors.blue,
|
||||||
fontSize: 13,
|
),
|
||||||
fontWeight: FontWeight.w700,
|
|
||||||
color: Colors.blue,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
const SizedBox(height: 4),
|
|
||||||
Text(
|
|
||||||
'${e.suhu.toStringAsFixed(1)} °C',
|
|
||||||
style: TextStyle(
|
|
||||||
fontSize: 12,
|
|
||||||
fontWeight: FontWeight.w600,
|
|
||||||
color: Colors.orange.shade700,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue