Skip to content

Commit

Permalink
feat: Consider backgroun_image parameter in display external issuer #…
Browse files Browse the repository at this point in the history
  • Loading branch information
bibash28 committed Jul 19, 2024
1 parent 6caa8d5 commit ace862b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/credentials/cubit/credentials_cubit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -995,7 +995,8 @@ List<DiscoverDummyCredential> getDummiesFromExternalIssuerList(
image: e.background_url,
display: Display(
backgroundColor: e.background_color,
backgroundImage: DisplayDetails(url: e.background_url),
backgroundImage:
DisplayDetails(url: e.background_image ?? e.background_url),
name: e.title,
textColor: e.text_color,
logo: DisplayDetails(url: e.logo),
Expand Down
5 changes: 5 additions & 0 deletions lib/dashboard/profile/models/display_external_issuer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class DisplayExternalIssuer extends Equatable {
this.category,
this.redirect,
this.background_url,
this.background_image,
this.logo,
this.background_color,
this.text_color,
Expand All @@ -31,6 +32,7 @@ class DisplayExternalIssuer extends Equatable {
final String? category;
final String? redirect;
final String? background_url;
final String? background_image;
final String? logo;
final String? background_color;
final String? text_color;
Expand All @@ -50,6 +52,7 @@ class DisplayExternalIssuer extends Equatable {
String? category,
String? redirect,
String? background_url,
String? background_image,
String? logo,
String? background_color,
String? text_color,
Expand All @@ -67,6 +70,7 @@ class DisplayExternalIssuer extends Equatable {
category: category ?? this.category,
redirect: redirect ?? this.redirect,
background_url: background_url ?? this.background_url,
background_image: background_image ?? this.background_image,
logo: logo ?? this.logo,
background_color: background_color ?? this.background_color,
text_color: text_color ?? this.text_color,
Expand All @@ -86,6 +90,7 @@ class DisplayExternalIssuer extends Equatable {
category,
redirect,
background_url,
background_image,
logo,
background_color,
text_color,
Expand Down

0 comments on commit ace862b

Please sign in to comment.