aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgutmet <me.git@gutmet.org>2020-05-23 08:56:25 +0200
committergutmet <me.git@gutmet.org>2020-05-23 08:56:25 +0200
commit16d25d139ae232fa00a9ce12ac5d8dac95ea6bce (patch)
treea059f585dc583ab5cd0e0dbf13ba266f079fb4d8
parent9cc63a365b3ef279f666526cd4f070cd47de5475 (diff)
downloadsnippets-16d25d139ae232fa00a9ce12ac5d8dac95ea6bce.tar.gz
center loading message
-rw-r--r--Flutter.md5
-rwxr-xr-xcreateFlutter3
2 files changed, 7 insertions, 1 deletions
diff --git a/Flutter.md b/Flutter.md
index f75ff06..2c620d7 100644
--- a/Flutter.md
+++ b/Flutter.md
@@ -16,3 +16,8 @@ Async Laden initial
* 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
diff --git a/createFlutter b/createFlutter
index 23b4dac..56840aa 100755
--- a/createFlutter
+++ b/createFlutter
@@ -316,8 +316,9 @@ class _LoadingState extends State<Loading> {
@override
Widget build(BuildContext context) {
return Scaffold(
- body: SafeArea(
+ body: Container(
child: Text("Loading..."),
+ alignment: Alignment.center,
),
);
}