mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-22 04:49:21 +00:00
Show banner on welcome route
This commit is contained in:
parent
71a72d4f04
commit
75b06e7df8
@ -1,4 +1,5 @@
|
||||
import 'package:comunic/models/config.dart';
|
||||
import 'package:comunic/ui/widgets/banner_widget.dart';
|
||||
import 'package:comunic/utils/intl_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
@ -43,40 +44,49 @@ class LoginScaffold extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
child: Scaffold(
|
||||
body: SingleChildScrollView(
|
||||
child: Center(
|
||||
child: Container(
|
||||
height: contentHeight,
|
||||
child: ConstrainedBox(
|
||||
constraints: BoxConstraints(maxWidth: 300),
|
||||
child: Column(
|
||||
children: <Widget>[
|
||||
Spacer(flex: 3),
|
||||
Text(config().appName,
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(fontSize: 50)),
|
||||
Spacer(flex: 1),
|
||||
Text(
|
||||
tr(config().appQuickDescription ??
|
||||
tr("Free social network that respect your privacy")),
|
||||
textAlign: TextAlign.center,
|
||||
),
|
||||
Spacer(flex: 3),
|
||||
child != null
|
||||
? Padding(
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
child: Material(
|
||||
child: child,
|
||||
color: Colors.indigo.shade500,
|
||||
body: SafeArea(
|
||||
child: Column(
|
||||
children: [
|
||||
BannerWidget(),
|
||||
Expanded(
|
||||
child: SingleChildScrollView(
|
||||
child: Center(
|
||||
child: Container(
|
||||
height: contentHeight,
|
||||
child: ConstrainedBox(
|
||||
constraints: BoxConstraints(maxWidth: 300),
|
||||
child: Column(
|
||||
children: <Widget>[
|
||||
Spacer(flex: 2),
|
||||
Text(config().appName,
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(fontSize: 50)),
|
||||
Spacer(flex: 1),
|
||||
Text(
|
||||
tr(config().appQuickDescription ??
|
||||
tr("Free social network that respect your privacy")),
|
||||
textAlign: TextAlign.center,
|
||||
),
|
||||
)
|
||||
: Container(),
|
||||
noStyleChild ?? Container(),
|
||||
Spacer(flex: 3),
|
||||
],
|
||||
Spacer(flex: 3),
|
||||
child != null
|
||||
? Padding(
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
child: Material(
|
||||
child: child,
|
||||
color: Colors.indigo.shade500,
|
||||
),
|
||||
)
|
||||
: Container(),
|
||||
noStyleChild ?? Container(),
|
||||
Spacer(flex: 3),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
|
Loading…
Reference in New Issue
Block a user