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(() { }); }