Skip to content

Commit

Permalink
Set default themeID to Dark
Browse files Browse the repository at this point in the history
  • Loading branch information
erdemyerebasmaz committed Feb 1, 2023
1 parent 57d47a0 commit 6f3772e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/bloc/user_profile/backup_user_preferences.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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<dynamic>)?.cast<String>() ??
<String>['USD', 'EUR', 'GBP', 'JPY'],
Expand Down
4 changes: 2 additions & 2 deletions lib/bloc/user_profile/breez_user_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion lib/theme_data.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

String themeId = "BLUE";
String themeId = "DARK";

class CustomData {
BlendMode loaderColorBlendMode;
Expand Down

0 comments on commit 6f3772e

Please sign in to comment.