add tags to api

This commit is contained in:
Valentin CZERYBA 2024-10-15 23:44:41 +02:00
parent b1ca67ed72
commit 4d73360f74

View File

@ -122,6 +122,7 @@ class _UpdateeventImageState extends State<UpdateeventImage>
var country = inputCountry.text;
var zipCode = inputZipCode.text;
var description = inputDesc.text;
List<String> tags = List<String>.from(_stringTagController.getTags as List);
var startDateFormat = formatDate(startDatepicker.text);
var endDateFormat = formatDate(endDatepicker.text);
@ -181,7 +182,8 @@ class _UpdateeventImageState extends State<UpdateeventImage>
'latitude': '0.0',
'longitude': '0.0',
'description': description,
"imgUrl": imgUrl
"imgUrl": imgUrl,
"tags": tags
}));
print(responsePut.statusCode);
if ((responsePut.statusCode == 200) ||