1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-22 04:49:21 +00:00

Adapt welcome route

This commit is contained in:
Pierre HUBERT 2021-04-23 12:28:50 +02:00
parent 2292454830
commit a022e8bfd1
3 changed files with 7 additions and 2 deletions

View File

@ -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();

View File

@ -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),

View File

@ -52,11 +52,12 @@ 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(
config().appQuickDescription ??
tr("Free social network that respect your privacy"),
textAlign: TextAlign.center,
),