From 16d25d139ae232fa00a9ce12ac5d8dac95ea6bce Mon Sep 17 00:00:00 2001 From: gutmet Date: Sat, 23 May 2020 08:56:25 +0200 Subject: [PATCH] center loading message --- Flutter.md | 5 +++++ createFlutter | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) 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 { @override Widget build(BuildContext context) { return Scaffold( - body: SafeArea( + body: Container( child: Text("Loading..."), + alignment: Alignment.center, ), ); }