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