aboutsummaryrefslogtreecommitdiff
path: root/Flutter.md
blob: 2c620d7e58c5d8f8d042590649ea9e11b1ed1cbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Flutter
=======

Async Speichern
===============
```
showDialog(context: context, barrierDismissible: false,
  builder: (BuildContext context) { return AlertDialog(content: Text("Saving...")); });
await saveToSomething()
Navigator.of(context, rootNavigator: true).pop();
```

Async Laden initial
===================
* Initial nur den Loading Screen anzeigen
* in InitState das async-Laden aufrufen
* darin await LoadFromSomething()
* dann Navigator.pushReplacement zur Home-Route

Assets
======
* Ordner 'assets' anlegen
* in pubspec.yaml -> flutter: -> assets: -> - assets/foobar.jpg   auflisten