* loader hide function added to the error state of initDevice function

Main_App_Replacement
taha 1 week ago
parent 77b2011fcd
commit ae0fffdc0a

@ -124,6 +124,7 @@ class HealthProvider with ChangeNotifier {
isLoading = false;
// LoaderBottomSheet.hideLoader();
if (result.isError) {
LoaderBottomSheet.hideLoader();
if(result.asError?.error is PlatformException) {
error = 'Error initializing device: ${(result.asError?.error as PlatformException)?.message}';
}

Loading…
Cancel
Save