mirror of
https://github.com/Nioux/AideDeJeu.git
synced 2025-10-29 06:26:02 +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(
|
||||
|
|
|
|||
BIN
aidedejeu_flutter/web/icons/Icon-192.png
Normal file
BIN
aidedejeu_flutter/web/icons/Icon-192.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.2 KiB |
BIN
aidedejeu_flutter/web/icons/Icon-512.png
Normal file
BIN
aidedejeu_flutter/web/icons/Icon-512.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 8.1 KiB |
30
aidedejeu_flutter/web/index.html
Normal file
30
aidedejeu_flutter/web/index.html
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
|
||||
<meta name="description" content="A new Flutter project.">
|
||||
|
||||
<!-- iOS meta tags & icons -->
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-status-bar-style" content="black">
|
||||
<meta name="apple-mobile-web-app-title" content="aidedejeu_flutter">
|
||||
<link rel="apple-touch-icon" href="/icons/Icon-192.png">
|
||||
|
||||
<title>aidedejeu_flutter</title>
|
||||
<link rel="manifest" href="/manifest.json">
|
||||
</head>
|
||||
<body>
|
||||
<!-- This script installs service_worker.js to provide PWA functionality to
|
||||
application. For more information, see:
|
||||
https://developers.google.com/web/fundamentals/primers/service-workers -->
|
||||
<script>
|
||||
if ('serviceWorker' in navigator) {
|
||||
window.addEventListener('load', function () {
|
||||
navigator.serviceWorker.register('/flutter_service_worker.js');
|
||||
});
|
||||
}
|
||||
</script>
|
||||
<script src="main.dart.js" type="application/javascript"></script>
|
||||
</body>
|
||||
</html>
|
||||
23
aidedejeu_flutter/web/manifest.json
Normal file
23
aidedejeu_flutter/web/manifest.json
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
"name": "aidedejeu_flutter",
|
||||
"short_name": "aidedejeu_flutter",
|
||||
"start_url": ".",
|
||||
"display": "minimal-ui",
|
||||
"background_color": "#0175C2",
|
||||
"theme_color": "#0175C2",
|
||||
"description": "A new Flutter project.",
|
||||
"orientation": "portrait-primary",
|
||||
"prefer_related_applications": false,
|
||||
"icons": [
|
||||
{
|
||||
"src": "icons/Icon-192.png",
|
||||
"sizes": "192x192",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "icons/Icon-512.png",
|
||||
"sizes": "512x512",
|
||||
"type": "image/png"
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue