mirror of
				https://gitlab.com/comunic/comunicmobile
				synced 2025-11-04 04:04:18 +00:00 
			
		
		
		
	Adapt welcome route
This commit is contained in:
		@@ -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,11 +52,12 @@ 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(
 | 
				
			||||||
 | 
					                      config().appQuickDescription ??
 | 
				
			||||||
                          tr("Free social network that respect your privacy"),
 | 
					                          tr("Free social network that respect your privacy"),
 | 
				
			||||||
                      textAlign: TextAlign.center,
 | 
					                      textAlign: TextAlign.center,
 | 
				
			||||||
                    ),
 | 
					                    ),
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user