diff --git a/lib/app/shared/widget/dialog/error_details_dialog.dart b/lib/app/shared/widget/dialog/error_details_dialog.dart index b4afefc7f..3609545bb 100644 --- a/lib/app/shared/widget/dialog/error_details_dialog.dart +++ b/lib/app/shared/widget/dialog/error_details_dialog.dart @@ -35,54 +35,57 @@ class ErrorDetailsDialog extends StatelessWidget { shape: const RoundedRectangleBorder( borderRadius: BorderRadius.all(Radius.circular(25)), ), - content: Column( - mainAxisSize: MainAxisSize.min, - children: [ - const SizedBox(height: 25), - if (erroDescription != null) ...[ - Text( - erroDescription!, - style: Theme.of(context) - .textTheme - .defaultDialogSubtitle - .copyWith(color: textColor), - textAlign: TextAlign.center, - ), - ], - if (erroUrl != null) ...[ - const SizedBox(height: Sizes.spaceXSmall), - TransparentInkWell( - onTap: () async { - await LaunchUrl.launch( - erroUrl!, - launchMode: LaunchMode.inAppWebView, - ); - }, - child: Text( - l10n.moreDetails, - style: Theme.of(context).textTheme.bodyMedium!.copyWith( - color: Theme.of(context).colorScheme.markDownA, - decoration: TextDecoration.underline, - decorationColor: Theme.of(context).colorScheme.markDownA, - ), + content: SingleChildScrollView( + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + const SizedBox(height: 25), + if (erroDescription != null) ...[ + Text( + erroDescription!, + style: Theme.of(context) + .textTheme + .defaultDialogSubtitle + .copyWith(color: textColor), textAlign: TextAlign.center, ), + ], + if (erroUrl != null) ...[ + const SizedBox(height: Sizes.spaceXSmall), + TransparentInkWell( + onTap: () async { + await LaunchUrl.launch( + erroUrl!, + launchMode: LaunchMode.inAppWebView, + ); + }, + child: Text( + l10n.moreDetails, + style: Theme.of(context).textTheme.bodyMedium!.copyWith( + color: Theme.of(context).colorScheme.markDownA, + decoration: TextDecoration.underline, + decorationColor: + Theme.of(context).colorScheme.markDownA, + ), + textAlign: TextAlign.center, + ), + ), + ], + const SizedBox(height: 24), + MyElevatedButton( + text: l10n.ok, + verticalSpacing: 14, + backgroundColor: color, + borderRadius: Sizes.smallRadius, + fontSize: 15, + elevation: 0, + onPressed: () { + Navigator.of(context).pop(true); + }, ), + const SizedBox(height: 15), ], - const SizedBox(height: 24), - MyElevatedButton( - text: l10n.ok, - verticalSpacing: 14, - backgroundColor: color, - borderRadius: Sizes.smallRadius, - fontSize: 15, - elevation: 0, - onPressed: () { - Navigator.of(context).pop(true); - }, - ), - const SizedBox(height: 15), - ], + ), ), ); } diff --git a/packages/credential_manifest/lib/src/helpers/get_credential_manifest.dart b/packages/credential_manifest/lib/src/helpers/get_credential_manifest.dart index 3372d68c0..43cabdfa3 100644 --- a/packages/credential_manifest/lib/src/helpers/get_credential_manifest.dart +++ b/packages/credential_manifest/lib/src/helpers/get_credential_manifest.dart @@ -75,6 +75,6 @@ Future> getOpenIdConfigSecondAttempt({ : response.data as Map; return data; } catch (e) { - throw Exception(); + throw Exception('Second_Attempt_Fail'); } } diff --git a/packages/oidc4vc/lib/src/oidc4vc.dart b/packages/oidc4vc/lib/src/oidc4vc.dart index fd543537e..aef0b0e54 100644 --- a/packages/oidc4vc/lib/src/oidc4vc.dart +++ b/packages/oidc4vc/lib/src/oidc4vc.dart @@ -432,7 +432,7 @@ class OIDC4VC { ); return didDocument; } catch (e) { - throw Exception(e); + rethrow; } } @@ -779,7 +779,7 @@ class OIDC4VC { return vpToken; } catch (e) { - throw Exception(e); + rethrow; } } @@ -809,7 +809,7 @@ class OIDC4VC { return verifierIdToken; } catch (e) { - throw Exception(e); + rethrow; } } @@ -865,7 +865,7 @@ class OIDC4VC { ); return response; } catch (e) { - throw Exception(e); + rethrow; } } @@ -1028,7 +1028,7 @@ class OIDC4VC { return data; } catch (e) { if (e.toString().startsWith('Exception: Second_Attempt_Fail')) { - throw Exception(); + rethrow; } else { final data = await getOpenIdConfigSecondAttempt(baseUrl); return data; @@ -1048,7 +1048,7 @@ class OIDC4VC { : response.data as Map; return data; } catch (e) { - throw Exception(); + throw Exception('Second_Attempt_Fail'); } } }