Skip to content

Commit

Permalink
Merge branch 'trunk' into feature/enable-user-sharing
Browse files Browse the repository at this point in the history
  • Loading branch information
sonle-geekyants committed Apr 20, 2023
2 parents 248ee9f + 74917d5 commit 9a7ad13
Show file tree
Hide file tree
Showing 2 changed files with 129 additions and 68 deletions.
7 changes: 6 additions & 1 deletion lib/services/backend_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -426,9 +426,14 @@ class BackendService {
value, result.atsign!, atClientPrefernce);
break;
case AtOnboardingResultStatus.error:
var isConnected = Provider.of<InternetConnectivityChecker>(
NavService.navKey.currentContext!,
listen: false)
.isInternetAvailable;

SnackbarService().showSnackbar(
NavService.navKey.currentContext!,
(result.message ?? '').isNotEmpty ? '' : 'Onboarding failed.',
isConnected ? "Onboarding failed" : "No internet available",
bgColor: ColorConstants.redAlert,
);
break;
Expand Down
Loading

0 comments on commit 9a7ad13

Please sign in to comment.