simple detail view of flood station and readings

This commit is contained in:
2025-01-24 23:47:46 +01:00
parent 08c266bc95
commit dfb9b59560
4 changed files with 68 additions and 0 deletions

11
lib/model/reading.dart Normal file
View File

@@ -0,0 +1,11 @@
class Reading {
final DateTime dateTime;
final double value;
factory Reading.fromMap(Map<String, dynamic> json) => Reading(
dateTime: DateTime.parse(json['dateTime']),
value: json['value'],
);
Reading({required this.dateTime, required this.value});
}