mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-22 04:49:21 +00:00
Adapt welcome route
This commit is contained in:
parent
2292454830
commit
a022e8bfd1
@ -2,6 +2,7 @@ import 'dart:io';
|
||||
|
||||
import 'package:comunic/main.dart';
|
||||
import 'package:comunic/models/config.dart';
|
||||
import 'package:comunic/utils/intl_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
/// Forez development configuration
|
||||
@ -27,6 +28,7 @@ void main() {
|
||||
clientName: "ForezFlutter",
|
||||
splashBackgroundColor: Colors.green.shade900,
|
||||
appName: "#Forez",
|
||||
appQuickDescription: tr("Events organisation in Forez plain"),
|
||||
));
|
||||
|
||||
HttpOverrides.global = new MyHttpOverride();
|
||||
|
@ -16,6 +16,7 @@ class Config {
|
||||
final String clientName;
|
||||
final Color splashBackgroundColor;
|
||||
final String appName;
|
||||
final String appQuickDescription;
|
||||
|
||||
const Config({
|
||||
@required this.apiServerName,
|
||||
@ -24,6 +25,7 @@ class Config {
|
||||
@required this.clientName,
|
||||
this.splashBackgroundColor = defaultColor,
|
||||
this.appName = "Comunic",
|
||||
this.appQuickDescription,
|
||||
}) : assert(apiServerName != null),
|
||||
assert(apiServerUri != null),
|
||||
assert(apiServerSecure != null),
|
||||
|
@ -52,12 +52,13 @@ class LoginScaffold extends StatelessWidget {
|
||||
child: Column(
|
||||
children: <Widget>[
|
||||
Spacer(flex: 3),
|
||||
Text("Comunic",
|
||||
Text(config().appName,
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(fontSize: 50)),
|
||||
Spacer(flex: 1),
|
||||
Text(
|
||||
tr("Free social network that respect your privacy"),
|
||||
config().appQuickDescription ??
|
||||
tr("Free social network that respect your privacy"),
|
||||
textAlign: TextAlign.center,
|
||||
),
|
||||
Spacer(flex: 3),
|
||||
|
Loading…
Reference in New Issue
Block a user