From d0da9ce0c8e6d948eaf5754d714aac6874ca2510 Mon Sep 17 00:00:00 2001 From: Bibash Shrestha Date: Mon, 25 Mar 2024 16:25:52 +0545 Subject: [PATCH] refactor: External issuer discover issue fixed #2310 --- lib/credentials/cubit/credentials_cubit.dart | 5 +++-- lib/dashboard/discover/view/discover_page.dart | 15 ++++++++++----- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/lib/credentials/cubit/credentials_cubit.dart b/lib/credentials/cubit/credentials_cubit.dart index e41145651..a5efbdcd7 100644 --- a/lib/credentials/cubit/credentials_cubit.dart +++ b/lib/credentials/cubit/credentials_cubit.dart @@ -900,10 +900,11 @@ class CredentialsCubit extends Cubit { } } -// Generate list of external issuer from the profile + /// Generate list of external issuer from the profile dummies[category] = getDummiesFromExternalIssuerList(category, externalIssuers ?? []); -// add dummies from the category + + /// add dummies from the category dummies[category]?.addAll( requiredDummySubjects .map((item) => item.dummyCredential(profileSetting)) diff --git a/lib/dashboard/discover/view/discover_page.dart b/lib/dashboard/discover/view/discover_page.dart index 4ce2acaed..624c90219 100644 --- a/lib/dashboard/discover/view/discover_page.dart +++ b/lib/dashboard/discover/view/discover_page.dart @@ -33,11 +33,16 @@ class _DiscoverPageState extends State { padding: EdgeInsets.zero, backgroundColor: Theme.of(context).colorScheme.transparent, body: BlocListener( - listenWhen: (previous, current) => - current.model.profileSetting.selfSovereignIdentityOptions - .customOidc4vcProfile.vcFormatType != - previous.model.profileSetting.selfSovereignIdentityOptions - .customOidc4vcProfile.vcFormatType, + listenWhen: (previous, current) { + // if (current.model.profileSetting.selfSovereignIdentityOptions + // .customOidc4vcProfile.vcFormatType != + // previous.model.profileSetting.selfSovereignIdentityOptions + // .customOidc4vcProfile.vcFormatType) { + // return true; + // } + + return true; + }, listener: (context, state) { onRefresh(); },