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