Add locations and save them, remove locations and delete them

This commit is contained in:
Konstantin Kollar
2022-09-05 11:59:52 +02:00
parent 730634bdb2
commit e96a33f0a3
6 changed files with 75 additions and 48 deletions
+5 -1
View File
@@ -24,7 +24,11 @@ class _LocationsState extends State<Locations> {
});
}
void deleteLocation(String name) {}
void deleteLocation(String name) {
setState(() {
locations = UserPreferences.deleteLocation(name);
});
}
@override
Widget build(BuildContext context) {