1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-06-19 08:15:16 +00:00

Adapt initialize widget

This commit is contained in:
2021-04-23 12:24:35 +02:00
parent d980239a68
commit 2292454830
3 changed files with 42 additions and 33 deletions

View File

@ -15,6 +15,7 @@ class Config {
final bool apiServerSecure;
final String clientName;
final Color splashBackgroundColor;
final String appName;
const Config({
@required this.apiServerName,
@ -22,11 +23,13 @@ class Config {
@required this.apiServerSecure,
@required this.clientName,
this.splashBackgroundColor = defaultColor,
this.appName = "Comunic",
}) : assert(apiServerName != null),
assert(apiServerUri != null),
assert(apiServerSecure != null),
assert(clientName != null),
assert(splashBackgroundColor != null);
assert(splashBackgroundColor != null),
assert(appName != null);
/// Get and set static configuration
static Config _config;