mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-19 08:15:16 +00:00
Adapt initialize widget
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user