Habib Wallet updates

haroon_dev
haroon amjad 1 day ago
parent 657f886391
commit 08928ddd28

File diff suppressed because it is too large Load Diff

@ -184,15 +184,15 @@ class ApiClientImp implements ApiClient {
body[_appState.isAuthenticated ? 'TokenID' : 'LogInTokenID'] = _appState.appAuthToken;
}
if (url.contains("HMGAI_Lab_Analyze_Orders_API")) {
url = "https://uat.hmgwebservices.com/Services/Patients.svc/REST/HMGAI_Lab_Analyze_Orders_API";
body['TokenID'] = "@dm!n";
}
if (url.contains("HMGAI_Lab_Analyzer_API")) {
url = "https://uat.hmgwebservices.com/Services/Patients.svc/REST/HMGAI_Lab_Analyzer_API";
body['TokenID'] = "@dm!n";
}
// if (url.contains("HMGAI_Lab_Analyze_Orders_API")) {
// url = "https://uat.hmgwebservices.com/Services/Patients.svc/REST/HMGAI_Lab_Analyze_Orders_API";
// body['TokenID'] = "@dm!n";
// }
//
// if (url.contains("HMGAI_Lab_Analyzer_API")) {
// url = "https://uat.hmgwebservices.com/Services/Patients.svc/REST/HMGAI_Lab_Analyzer_API";
// body['TokenID'] = "@dm!n";
// }
if (url == 'https://uat.hmgwebservices.com/Services/NHIC.svc/REST/GetPatientInfo') {
url = "https://hmgwebservices.com/Services/NHIC.svc/REST/GetPatientInfo";

@ -112,6 +112,8 @@ class HabibWalletViewModel extends ChangeNotifier {
habibWalletBalanceList.sort((a, b) => b.patientAdvanceBalanceAmount!.compareTo(a.patientAdvanceBalanceAmount!));
habibWalletBalanceList.removeWhere((element) => element.patientAdvanceBalanceAmount == 0);
isWalletAmountLoading = false;
notifyListeners();
if (onSuccess != null) {

@ -56,8 +56,10 @@ class _HabibWalletState extends State<HabibWalletPage> {
width: double.infinity,
height: 180.h,
decoration: RoundedRectangleBorder().toSmoothCornerDecoration(
color: AppColors.whiteColor,
borderRadius: 24,
// color: AppColors.blackBgColor,
color: Color(0xFF2E3039),
borderRadius: 24.r,
hasShadow: true
),
child: Padding(
padding: EdgeInsets.all(16.h),
@ -71,7 +73,7 @@ class _HabibWalletState extends State<HabibWalletPage> {
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
"${_appState.getAuthenticatedUser()!.firstName!} ${_appState.getAuthenticatedUser()!.lastName!}".toText19(isBold: true, color: AppColors.textColor),
"${_appState.getAuthenticatedUser()!.firstName!} ${_appState.getAuthenticatedUser()!.lastName!}".toText19(isBold: true, color: Colors.white),
"MRN: ${_appState.getAuthenticatedUser()!.patientId!}".toText14(weight: FontWeight.w500, color: AppColors.greyTextColor),
],
).expanded,
@ -79,10 +81,10 @@ class _HabibWalletState extends State<HabibWalletPage> {
],
),
Spacer(),
LocaleKeys.balanceAmount.tr(context: context).toText14(weight: FontWeight.w500, color: AppColors.textColor),
LocaleKeys.balanceAmount.tr(context: context).toText14(weight: FontWeight.w500, color: Colors.white),
SizedBox(height: 4.h),
Consumer<HabibWalletViewModel>(builder: (context, habibWalletVM, child) {
return Utils.getPaymentAmountWithSymbol2(habibWalletVM.habibWalletAmount, textColor: AppColors.textColor, iconColor: AppColors.textColor, iconSize: 16, isExpanded: false)
return Utils.getPaymentAmountWithSymbol2(habibWalletVM.habibWalletAmount, textColor: Colors.white, iconColor: Colors.white, iconSize: 16, isExpanded: false)
.toShimmer2(isShow: habibWalletVM.isWalletAmountLoading, radius: 12.h, width: 80.h, height: 24.h);
}),
],

@ -78,6 +78,8 @@ class AiAnalysisWidget extends StatelessWidget {
CustomButton(
height: 50.h,
text: LocaleKeys.close.tr(context: context),
backgroundColor: AppColors.primaryRedColor,
borderColor: AppColors.primaryRedColor,
onPressed: () {
getIt.get<LabViewModel>().closeAILabResultAnalysis();
},

Loading…
Cancel
Save