From 4d73360f7426984625690500f30f2ad125733514 Mon Sep 17 00:00:00 2001 From: Valentin CZERYBA Date: Tue, 15 Oct 2024 23:44:41 +0200 Subject: [PATCH] add tags to api --- covas_mobile/lib/pages/UpdateEventImage.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/covas_mobile/lib/pages/UpdateEventImage.dart b/covas_mobile/lib/pages/UpdateEventImage.dart index 86809d1..86390e0 100644 --- a/covas_mobile/lib/pages/UpdateEventImage.dart +++ b/covas_mobile/lib/pages/UpdateEventImage.dart @@ -122,6 +122,7 @@ class _UpdateeventImageState extends State var country = inputCountry.text; var zipCode = inputZipCode.text; var description = inputDesc.text; + List tags = List.from(_stringTagController.getTags as List); var startDateFormat = formatDate(startDatepicker.text); var endDateFormat = formatDate(endDatepicker.text); @@ -181,7 +182,8 @@ class _UpdateeventImageState extends State 'latitude': '0.0', 'longitude': '0.0', 'description': description, - "imgUrl": imgUrl + "imgUrl": imgUrl, + "tags": tags })); print(responsePut.statusCode); if ((responsePut.statusCode == 200) ||