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) {