From b7bc095d87f3b24e9d5b7c4ee2f9ff06078eeeb4 Mon Sep 17 00:00:00 2001 From: fbachus Date: Mon, 18 May 2026 23:50:08 +0200 Subject: [PATCH] fix(): unwrap list of strings instead of strings in main.dart just to show something in the UI from the api requests --- lib/main.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index 9117496..d9f6ebd 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -73,8 +73,10 @@ class _MyHomePageState extends State { _counter++; }); } - void show_result(Future future_id) async { - id = await future_id; + // TODO :find a better way to show the list + void show_result(Future> future_id) async { + var tmp = await future_id; + id = tmp[0]; setState(() { }); }