fix(): unwrap list of strings instead of strings in main.dart

just to show something in the UI from the api requests
This commit is contained in:
fbachus
2026-05-18 23:50:08 +02:00
parent 385600dd06
commit b7bc095d87
+4 -2
View File
@@ -73,8 +73,10 @@ class _MyHomePageState extends State<MyHomePage> {
_counter++; _counter++;
}); });
} }
void show_result(Future<String> future_id) async { // TODO :find a better way to show the list
id = await future_id; void show_result(Future<List<String>> future_id) async {
var tmp = await future_id;
id = tmp[0];
setState(() { }); setState(() { });
} }