mirror of
https://github.com/Nioux/AideDeJeu.git
synced 2025-10-29 14:35:45 +00:00
Future
This commit is contained in:
parent
f581c6a886
commit
86445c2164
5 changed files with 57 additions and 3 deletions
|
|
@ -135,13 +135,14 @@ class _MyHomePageState extends State<MyHomePage> {
|
|||
/*getItemWithId(this.id)
|
||||
.then((item) => loadChildrenItems(item).then((items) => setItem(item)))
|
||||
.catchError((error) => print(error));*/
|
||||
loadItem();
|
||||
loadItem().then((item) => setItem(item));
|
||||
}
|
||||
|
||||
loadItem() async {
|
||||
Future<Item> loadItem() async {
|
||||
var item = await getItemWithId(this.id);
|
||||
var items = await loadChildrenItems(item);
|
||||
setItem(item);
|
||||
//setItem(item);
|
||||
return item;
|
||||
}
|
||||
|
||||
final Widget svg = SvgPicture.asset(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue