change title work

This commit is contained in:
Valentin CZERYBA 2024-07-01 21:53:53 +02:00
parent ce489bc86a
commit 2c6a1a1686

View File

@ -85,9 +85,9 @@ class _ItemMenuState extends State<ItemMenu> with ShowErrorDialog {
stderr.writeln('Response Get status: ${responseGet.statusCode}');
if (responseGet.statusCode == 200) {
stderr.writeln('Username : ${responseGet.body}');
Events events = jsonDecode(utf8.decode(responseGet.bodyBytes));
print(events.name);
former = events.name!;
var events = jsonDecode(utf8.decode(responseGet.bodyBytes));
print(events["name"]);
former = events["name"];
} else {
var text = "";
switch (responseGet.statusCode) {