1
0
Fork 0
mirror of https://github.com/Nioux/AideDeJeu.git synced 2025-10-29 06:26:02 +00:00
This commit is contained in:
Yan Maniez 2020-02-19 16:47:28 +01:00
parent f581c6a886
commit 86445c2164
5 changed files with 57 additions and 3 deletions

View file

@ -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(

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

View 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>

View 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"
}
]
}