more detailed flood station info

This commit is contained in:
2025-01-24 23:06:53 +01:00
parent bedd9c7d88
commit 08c266bc95
3 changed files with 57 additions and 13 deletions

View File

@@ -0,0 +1,24 @@
import 'package:flutter/material.dart';
import '../model/flood_station.dart';
class FloodStationListView extends StatelessWidget {
const FloodStationListView({super.key, required List<FloodStation> stations})
: _stations = stations;
final List<FloodStation> _stations;
@override
Widget build(BuildContext context) {
return ListView.builder(
itemBuilder: (context, index) {
final item = _stations.elementAt(index);
return ListTile(
title: Text(item.label),
subtitle: Text(item.town),
);
},
itemCount: _stations.length,
);
}
}