From 6f3772e8253d8c6be1449d6d500be140326e5f12 Mon Sep 17 00:00:00 2001 From: Erdem Yerebasmaz Date: Tue, 31 Jan 2023 13:43:11 +0300 Subject: [PATCH] Set default themeID to Dark --- lib/bloc/user_profile/backup_user_preferences.dart | 4 ++-- lib/bloc/user_profile/breez_user_model.dart | 4 ++-- lib/theme_data.dart | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/bloc/user_profile/backup_user_preferences.dart b/lib/bloc/user_profile/backup_user_preferences.dart index 8e9853206..9ddaf13e7 100644 --- a/lib/bloc/user_profile/backup_user_preferences.dart +++ b/lib/bloc/user_profile/backup_user_preferences.dart @@ -18,7 +18,7 @@ class BackupUserPreferences { this.color, this.animal, { this.image, - this.themeId = "BLUE", + this.themeId = "DARK", this.preferredCurrencies, this.cancellationTimeoutValue = 90.0, this.businessAddress, @@ -55,7 +55,7 @@ class BackupUserPreferences { color = json['color'], animal = json['animal'], image = json['image'], - themeId = json['themeId'] ?? "BLUE", + themeId = json['themeId'] ?? "DARK", preferredCurrencies = (json['preferredCurrencies'] as List)?.cast() ?? ['USD', 'EUR', 'GBP', 'JPY'], diff --git a/lib/bloc/user_profile/breez_user_model.dart b/lib/bloc/user_profile/breez_user_model.dart index 6d62855e8..a4e8c4440 100644 --- a/lib/bloc/user_profile/breez_user_model.dart +++ b/lib/bloc/user_profile/breez_user_model.dart @@ -43,7 +43,7 @@ class BreezUserModel { this.securityModel, this.locked, this.token = '', - this.themeId = "BLUE", + this.themeId = "DARK", this.registrationRequested = false, this.hideBalance = false, this.cancellationTimeoutValue = 90.0, @@ -135,7 +135,7 @@ class BreezUserModel { : SecurityModel.fromJson( json['securityModel'], ), - themeId = json['themeId'] == null ? "BLUE" : json['themeId'], + themeId = json['themeId'] == null ? "DARK" : json['themeId'], registrationRequested = json['registrationRequested'] ?? json['token'] != null, hideBalance = json['hideBalance'] ?? false, diff --git a/lib/theme_data.dart b/lib/theme_data.dart index 84db4b151..a9c3c9785 100644 --- a/lib/theme_data.dart +++ b/lib/theme_data.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; -String themeId = "BLUE"; +String themeId = "DARK"; class CustomData { BlendMode loaderColorBlendMode;