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/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,40 +44,49 @@ class LoginScaffold extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
child: Scaffold(
|
child: Scaffold(
|
||||||
body: SingleChildScrollView(
|
body: SafeArea(
|
||||||
child: Center(
|
child: Column(
|
||||||
child: Container(
|
children: [
|
||||||
height: contentHeight,
|
BannerWidget(),
|
||||||
child: ConstrainedBox(
|
Expanded(
|
||||||
constraints: BoxConstraints(maxWidth: 300),
|
child: SingleChildScrollView(
|
||||||
child: Column(
|
child: Center(
|
||||||
children: <Widget>[
|
child: Container(
|
||||||
Spacer(flex: 3),
|
height: contentHeight,
|
||||||
Text(config().appName,
|
child: ConstrainedBox(
|
||||||
textAlign: TextAlign.center,
|
constraints: BoxConstraints(maxWidth: 300),
|
||||||
style: TextStyle(fontSize: 50)),
|
child: Column(
|
||||||
Spacer(flex: 1),
|
children: <Widget>[
|
||||||
Text(
|
Spacer(flex: 2),
|
||||||
tr(config().appQuickDescription ??
|
Text(config().appName,
|
||||||
tr("Free social network that respect your privacy")),
|
textAlign: TextAlign.center,
|
||||||
textAlign: TextAlign.center,
|
style: TextStyle(fontSize: 50)),
|
||||||
),
|
Spacer(flex: 1),
|
||||||
Spacer(flex: 3),
|
Text(
|
||||||
child != null
|
tr(config().appQuickDescription ??
|
||||||
? Padding(
|
tr("Free social network that respect your privacy")),
|
||||||
padding: const EdgeInsets.all(8.0),
|
textAlign: TextAlign.center,
|
||||||
child: Material(
|
|
||||||
child: child,
|
|
||||||
color: Colors.indigo.shade500,
|
|
||||||
),
|
),
|
||||||
)
|
Spacer(flex: 3),
|
||||||
: Container(),
|
child != null
|
||||||
noStyleChild ?? Container(),
|
? Padding(
|
||||||
Spacer(flex: 3),
|
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