Clarity implementation updates

pull/336/head
haroon amjad 1 week ago
parent 1438daa1d3
commit 64eb04011e

@ -210,8 +210,8 @@ class ApiClientImp implements ApiClient {
body['TokenID'] = "@dm!n";
}
body['TokenID'] = "@dm!n";
// body['PatientID'] = 3648831;
// body['TokenID'] = "@dm!n";
// body['PatientID'] = 4772993;
// body['PatientID'] = 89754444;
// body['PatientTypeID'] = 1;
// body['PatientOutSA'] = 0;

@ -4,12 +4,14 @@ import 'dart:io';
import 'dart:math' as dartMath;
import 'dart:typed_data';
import 'package:clarity_flutter/clarity_flutter.dart';
import 'package:connectivity_plus/connectivity_plus.dart';
import 'package:crypto/crypto.dart' as crypto;
import 'package:easy_localization/easy_localization.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
import 'package:fluttertoast/fluttertoast.dart';
import 'package:get_it/get_it.dart';
import 'package:google_api_availability/google_api_availability.dart';
import 'package:hmg_patient_app_new/core/app_assets.dart';
import 'package:hmg_patient_app_new/core/app_state.dart';

@ -94,7 +94,8 @@ class LoginScreenState extends State<LoginScreen> {
LocaleKeys.welcomeToDrSulaiman.tr(context: context).toText32(isBold: true, color: AppColors.textColor ),
SizedBox(height: 32.h),
Localizations.override(context: context, locale: Locale('en', 'US'), child: Container()), // Force English locale for this widget
TextInputWidget(
ClarityUnmask(
child: TextInputWidget(
labelText: LocaleKeys.nationalIdFileNumber.tr(context: context),
hintText: "xxxxxxxxx",
controller: authVm.nationalIdController,
@ -116,6 +117,7 @@ class LoginScreenState extends State<LoginScreen> {
authVm.clearNationalIdError();
},
),
),
SizedBox(height: 16.h),
CustomButton(
height: 50.h,
@ -205,7 +207,8 @@ class LoginScreenState extends State<LoginScreen> {
child: SingleChildScrollView(
child: Consumer<AuthenticationViewModel>(
builder: (context, authVm, child) {
return GenericBottomSheet(
return ClarityUnmask(
child: GenericBottomSheet(
countryCode: authVm.selectedCountrySignup.countryCode,
initialPhoneNumber: "",
textController: phoneNumberController,
@ -264,6 +267,7 @@ class LoginScreenState extends State<LoginScreen> {
),
),
],
),
);
},
),

@ -63,12 +63,14 @@ class _ImmediateLiveCarePaymentPageState extends State<ImmediateLiveCarePaymentP
scheduleMicrotask(() {
payfortViewModel.initPayfortViewModel();
myAppointmentsViewModel.getTamaraInstallmentsDetails().then((val) {
if (myAppointmentsViewModel.getTamaraInstallmentsDetailsResponseModel != null) {
if (num.parse(immediateLiveCareViewModel.liveCareImmediateAppointmentFeesList.total!) >= myAppointmentsViewModel.getTamaraInstallmentsDetailsResponseModel!.minLimit!.amount! &&
num.parse(immediateLiveCareViewModel.liveCareImmediateAppointmentFeesList.total!) <= myAppointmentsViewModel.getTamaraInstallmentsDetailsResponseModel!.maxLimit!.amount!) {
setState(() {
isShowTamara = true;
});
}
}
});
});
super.initState();

@ -145,6 +145,8 @@ class _LandingPageState extends State<LandingPage> {
}
if (appState.isAuthenticated) {
Clarity.setCustomUserId(appState.getAuthenticatedUser()!.patientId.toString());
habibWalletVM.initHabibWalletProvider();
habibWalletVM.getPatientBalanceAmount();
habibWalletVM.getLakumAccountInformation();

@ -1,5 +1,6 @@
import 'dart:ui' as ui;
import 'package:clarity_flutter/clarity_flutter.dart';
import 'package:easy_localization/easy_localization.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
@ -405,6 +406,7 @@ class TextInputWidget extends StatelessWidget {
child: Localizations.override(
context: context,
locale: const Locale('en', 'US'), // Force English locale for TextField
child: ClarityUnmask(
child: TextField(
hintLocales: const [Locale('en', 'US')],
enabled: isEnable,
@ -466,6 +468,7 @@ class TextInputWidget extends StatelessWidget {
),
),
),
),
);
},
);

Loading…
Cancel
Save