From 2c6a1a168673d806b18a60588a6113e159a7d3e1 Mon Sep 17 00:00:00 2001 From: Valentin CZERYBA Date: Mon, 1 Jul 2024 21:53:53 +0200 Subject: [PATCH] change title work --- covas_mobile/lib/pages/ItemMenu.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/covas_mobile/lib/pages/ItemMenu.dart b/covas_mobile/lib/pages/ItemMenu.dart index 748f62d..269b5de 100644 --- a/covas_mobile/lib/pages/ItemMenu.dart +++ b/covas_mobile/lib/pages/ItemMenu.dart @@ -85,9 +85,9 @@ class _ItemMenuState extends State 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) {