1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-22 12:59:21 +00:00

Show banner on welcome route

This commit is contained in:
Pierre HUBERT 2021-12-30 12:28:06 +01:00
parent 71a72d4f04
commit 75b06e7df8

View File

@ -1,4 +1,5 @@
import 'package:comunic/models/config.dart'; import 'package:comunic/models/config.dart';
import 'package:comunic/ui/widgets/banner_widget.dart';
import 'package:comunic/utils/intl_utils.dart'; import 'package:comunic/utils/intl_utils.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
@ -43,7 +44,12 @@ class LoginScaffold extends StatelessWidget {
), ),
), ),
child: Scaffold( child: Scaffold(
body: SingleChildScrollView( body: SafeArea(
child: Column(
children: [
BannerWidget(),
Expanded(
child: SingleChildScrollView(
child: Center( child: Center(
child: Container( child: Container(
height: contentHeight, height: contentHeight,
@ -51,7 +57,7 @@ class LoginScaffold extends StatelessWidget {
constraints: BoxConstraints(maxWidth: 300), constraints: BoxConstraints(maxWidth: 300),
child: Column( child: Column(
children: <Widget>[ children: <Widget>[
Spacer(flex: 3), Spacer(flex: 2),
Text(config().appName, Text(config().appName,
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: TextStyle(fontSize: 50)), style: TextStyle(fontSize: 50)),
@ -80,6 +86,10 @@ class LoginScaffold extends StatelessWidget {
), ),
), ),
), ),
],
),
),
),
); );
} }
} }