center loading message

This commit is contained in:
gutmet 2020-05-23 08:56:25 +02:00
parent 9cc63a365b
commit 16d25d139a
2 changed files with 7 additions and 1 deletions

View File

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

View File

@ -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,
),
);
}