mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-07-01 14:13:29 +00:00
Improve signup route
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
import 'package:comunic/models/config.dart';
|
||||
import 'package:comunic/utils/intl_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
@ -7,9 +8,10 @@ import 'package:flutter/material.dart';
|
||||
|
||||
class LoginScaffold extends StatelessWidget {
|
||||
final Widget child;
|
||||
final Widget noStyleChild;
|
||||
|
||||
const LoginScaffold({Key key, @required this.child})
|
||||
: assert(child != null),
|
||||
const LoginScaffold({Key key, @required this.child, this.noStyleChild})
|
||||
: assert(child != null || noStyleChild != null),
|
||||
super(key: key);
|
||||
|
||||
@override
|
||||
@ -34,7 +36,7 @@ class LoginScaffold extends StatelessWidget {
|
||||
fillColor: Colors.white,
|
||||
hoverColor: Colors.white,
|
||||
),
|
||||
scaffoldBackgroundColor: Colors.indigo.shade900,
|
||||
scaffoldBackgroundColor: Config.get().splashBackgroundColor,
|
||||
textTheme: TextTheme(
|
||||
bodyText2: TextStyle(color: Colors.white),
|
||||
button: TextStyle(color: Colors.white),
|
||||
@ -50,18 +52,26 @@ class LoginScaffold extends StatelessWidget {
|
||||
child: Column(
|
||||
children: <Widget>[
|
||||
Spacer(flex: 3),
|
||||
Text("Comunic", style: TextStyle(fontSize: 50)),
|
||||
Text("Comunic",
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(fontSize: 50)),
|
||||
Spacer(flex: 1),
|
||||
Text(tr("Free social network that respect your privacy")),
|
||||
Spacer(flex: 1),
|
||||
Padding(
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
child: Material(
|
||||
child: child,
|
||||
color: Colors.indigo.shade500,
|
||||
),
|
||||
Text(
|
||||
tr("Free social network that respect your privacy"),
|
||||
textAlign: TextAlign.center,
|
||||
),
|
||||
Spacer(flex: 5),
|
||||
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),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
Reference in New Issue
Block a user