|
|
|
|
@ -915,8 +915,10 @@ class HmgServicesViewModel extends ChangeNotifier {
|
|
|
|
|
if (apiResponse.messageStatus == 1) {
|
|
|
|
|
vitalSignList = apiResponse.data ?? [];
|
|
|
|
|
hasVitalSignDataLoaded = true;
|
|
|
|
|
if (vitalSignList.isNotEmpty) {
|
|
|
|
|
getIt.get<SymptomsCheckerViewModel>().setSelectedHeight(vitalSignList.first.heightCm);
|
|
|
|
|
getIt.get<SymptomsCheckerViewModel>().setSelectedWeight(vitalSignList.first.weightKg);
|
|
|
|
|
}
|
|
|
|
|
notifyListeners();
|
|
|
|
|
if (onSuccess != null) {
|
|
|
|
|
onSuccess(apiResponse);
|
|
|
|
|
|