dev_v3.13.6_voipcall
Sultan khan 2 years ago
parent cbc38940ea
commit ec13edc28b

@ -1,24 +1,24 @@
class AppoitmentAllHistoryResultList {
String? setupID;
int? projectID;
int? appointmentNo;
dynamic? projectID;
dynamic? appointmentNo;
String? appointmentDate;
dynamic appointmentDateN;
int? appointmentType;
dynamic? appointmentDateN;
dynamic? appointmentType;
String? bookDate;
int? patientType;
int? patientID;
int? clinicID;
int? doctorID;
dynamic? patientType;
dynamic? patientID;
dynamic? clinicID;
dynamic? doctorID;
String? endDate;
String? startTime;
String? endTime;
int? status;
int? visitType;
int? visitFor;
int? patientStatusType;
int? companyID;
int? bookedBy;
dynamic? status;
dynamic? visitType;
dynamic? visitFor;
dynamic? patientStatusType;
dynamic? companyID;
dynamic? bookedBy;
String? bookedOn;
dynamic confirmedBy;
dynamic confirmedOn;
@ -32,24 +32,24 @@ class AppoitmentAllHistoryResultList {
dynamic statusDescN;
bool? vitalStatus;
dynamic vitalSignAppointmentNo;
int? episodeID;
int? actualDoctorRate;
dynamic? episodeID;
dynamic? actualDoctorRate;
String? clinicName;
bool? complainExists;
String? doctorImageURL;
String? doctorNameObj;
int? doctorRate;
dynamic? doctorRate;
dynamic decimalDoctorRate;
List<String>? doctorSpeciality;
String? doctorTitle;
int? gender;
dynamic? gender;
String? genderDescription;
bool? iSAllowOnlineCheckedIN;
bool? isActiveDoctor;
bool? isActiveDoctorProfile;
bool? isDoctorAllowVedioCall;
bool? isExecludeDoctor;
int? isFollowup;
dynamic? isFollowup;
bool? isLiveCareAppointment;
bool? isInOutPatient;
bool? isMedicalReportRequested;
@ -58,15 +58,15 @@ class AppoitmentAllHistoryResultList {
dynamic listHISGetContactLensPerscription;
dynamic listHISGetGlassPerscription;
String? longitude;
int? nextAction;
int? noOfPatientsRate;
int? originalClinicID;
int? originalProjectID;
dynamic? nextAction;
dynamic? noOfPatientsRate;
dynamic? originalClinicID;
dynamic? originalProjectID;
String? projectName;
String? qR;
int? remaniningHoursTocanPay;
bool? sMSButtonVisable;
int? serviceID;
dynamic? serviceID;
AppoitmentAllHistoryResultList(
{this.setupID,

@ -1,5 +1,5 @@
class YearlyHeartRateResModel {
num? valueAvg;
dynamic? valueAvg;
int? medCategoryID;
int? month;
String? monthName;

@ -356,7 +356,7 @@ class _AllHabibMedicalServiceState extends State<AllHabibMedicalService> {
Navigator.of(context).push(MaterialPageRoute(
builder: (BuildContext context) => MyWebView(
title: "HMG News",
selectedUrl: "https://twitter.com/hashtag/مجموعة_د_سليمان_الحبيب_الطبية?src=hashtag_click&f=live",
selectedUrl: " https://twitter.com/HMG", //"https://twitter.com/hashtag/مجموعة_د_سليمان_الحبيب_الطبية?src=hashtag_click&f=live", //this url is not working so changed to the hmg
)));
},
imageLocation: 'assets/images/new-design/twitter_dashboard_icon.png',

@ -138,7 +138,7 @@ class _BmrCalculatorState extends State<BmrCalculator> {
@override
Widget build(BuildContext context) {
if (dropdownValue == null) dropdownValue = TranslationBase.of(context).lightActive1;
dropdownValue = TranslationBase.of(context).lightActive1;
ProjectViewModel projectViewModel = Provider.of(context);
_weightPopupList = <PopupMenuItem>[PopupMenuItem(child: Text(TranslationBase.of(context).kg), value: true), PopupMenuItem(child: Text(TranslationBase.of(context).lb), value: false)];
_heightPopupList = <PopupMenuItem>[PopupMenuItem(child: Text(TranslationBase.of(context).cm), value: true), PopupMenuItem(child: Text(TranslationBase.of(context).ft), value: false)];

@ -44,8 +44,14 @@ class _CalorieCalculatorState extends State<CalorieCalculator> {
// int height = 0;
// int weight = 0;
double? calories;
String dropdownValue = '';
String? dropdownValue = '';
@override
void initState() {
super.initState();
}
void updateColor(int type) {
//MG/DLT card
if (type == 1) {
@ -74,12 +80,14 @@ class _CalorieCalculatorState extends State<CalorieCalculator> {
}
}
@override
Widget build(BuildContext context) {
ProjectViewModel projectViewModel = Provider.of(context);
_weightPopupList = <PopupMenuItem>[PopupMenuItem(child: Text(TranslationBase.of(context).kg), value: true), PopupMenuItem(child: Text(TranslationBase.of(context).lb), value: false)];
_heightPopupList = <PopupMenuItem>[PopupMenuItem(child: Text(TranslationBase.of(context).cm), value: true), PopupMenuItem(child: Text(TranslationBase.of(context).ft), value: false)];
dropdownValue= TranslationBase.of(context).almostInactive;
return AppScaffold(
isShowAppBar: true,
isShowDecPage: false,

@ -83,6 +83,8 @@ class _CarbsState extends State<Carbs> {
@override
Widget build(BuildContext context) {
ProjectViewModel projectViewModel = Provider.of(context);
dropdownValue = TranslationBase.of(context).dietVeryLow;
return AppScaffold(
isShowAppBar: true,
isShowDecPage: false,

@ -85,7 +85,7 @@ class _IdealBodyState extends State<IdealBody> {
@override
Widget build(BuildContext context) {
if (dropdownValue == null) dropdownValue = TranslationBase.of(context).mediumFinger;
dropdownValue = TranslationBase.of(context).mediumFinger;
_weightPopupList = <PopupMenuItem>[PopupMenuItem(child: Text(TranslationBase.of(context).kg), value: true), PopupMenuItem(child: Text(TranslationBase.of(context).lb), value: false)];
_heightPopupList = <PopupMenuItem>[PopupMenuItem(child: Text(TranslationBase.of(context).cm), value: true), PopupMenuItem(child: Text(TranslationBase.of(context).ft), value: false)];

@ -87,7 +87,7 @@ class DoctorView extends StatelessWidget {
style: TextStyle(fontSize: 16, fontWeight: FontWeight.w600, color: Color(0xff2E303A), letterSpacing: -0.64, height: 25 / 16),
),
),
Text(
doctor.date ==null ? SizedBox() : Text(
DateUtil.getDayMonthYearDateFormatted(DateUtil.convertStringToDate(doctor.date)),
style: TextStyle(fontSize: 14, fontWeight: FontWeight.w600, color: Color(0xff2B353E), letterSpacing: -0.48, height: 18 / 12),
) ,

@ -37,7 +37,7 @@ class _CovidDrivethruLocationState extends State<CovidDrivethruLocation> {
String projectID = "";
List<ImagesInfo> imagesInfo = [];
DriveThroughTestingCenterModel selectedProject = DriveThroughTestingCenterModel();
DriveThroughTestingCenterModel? selectedProject;
final GlobalKey locationDropdownKey = GlobalKey();
late ProjectViewModel projectViewModel;
@ -109,6 +109,7 @@ class _CovidDrivethruLocationState extends State<CovidDrivethruLocation> {
Container(
height: 20,
child: DropdownButtonHideUnderline(
//Dropdown duplicate issue
child: DropdownButton<DriveThroughTestingCenterModel>(
onTap: () {
print("Clicked");
@ -117,7 +118,7 @@ class _CovidDrivethruLocationState extends State<CovidDrivethruLocation> {
hint: new Text(
TranslationBase.of(context).selectAddress,
),
value: selectedProject,
value:selectedProject ==null || selectedProject!.projectName.isNotEmpty ?selectedProject :null,
iconSize: 0,
isExpanded: true,
style: TextStyle(fontSize: 14, letterSpacing: -0.56, color: Colors.black, fontFamily: projectViewModel.isArabic ? 'Cairo' : 'Poppins'),
@ -126,7 +127,7 @@ class _CovidDrivethruLocationState extends State<CovidDrivethruLocation> {
value: item,
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [Text(item.projectName ?? ""), getCovidTestTypeImage(item)],
children: [Text(item.projectName==null ? "" : item.projectName), getCovidTestTypeImage(item)],
),
);
}).toList(),
@ -277,7 +278,7 @@ class _CovidDrivethruLocationState extends State<CovidDrivethruLocation> {
next() {
if (isLocationSelected) {
Navigator.push(context, FadePage(page: CovidDirveThruQuestions(projectId: projectID, proceduresList: proceduresList, selectedProject: selectedProject)));
Navigator.push(context, FadePage(page: CovidDirveThruQuestions(projectId: projectID, proceduresList: proceduresList, selectedProject: selectedProject!)));
} else {
Utils.showErrorToast("Please select address from the dropdown menu to continue");
}
@ -302,7 +303,7 @@ class _CovidDrivethruLocationState extends State<CovidDrivethruLocation> {
CovidDriveThruService service = new CovidDriveThruService();
CovidPaymentInfoResponse covidPaymentInfoResponse = new CovidPaymentInfoResponse();
GifLoaderDialogUtils.showMyDialog(context);
service.getCovidPaymentInformation(context, int.parse(projectID), proceduresList[0].procedureID!, selectedProject.testTypeEnum!, selectedProject.testProcedureEnum!).then((res) {
service.getCovidPaymentInformation(context, int.parse(projectID), proceduresList[0].procedureID!, selectedProject!.testTypeEnum!, selectedProject!.testProcedureEnum!).then((res) {
GifLoaderDialogUtils.hideDialog(context);
if (res['MessageStatus'] == 1) {
setState(() {
@ -315,7 +316,7 @@ class _CovidDrivethruLocationState extends State<CovidDrivethruLocation> {
covidPaymentInfoResponse: covidPaymentInfoResponse,
projectID: int.parse(projectID),
proceduresList: proceduresList,
selectedProject: selectedProject,
selectedProject: selectedProject!,
)));
} else {}
}).catchError((err) {
@ -327,7 +328,7 @@ class _CovidDrivethruLocationState extends State<CovidDrivethruLocation> {
CovidDriveThruService service = new CovidDriveThruService();
GifLoaderDialogUtils.showMyDialog(context);
service.getCovidTestProceduresList(context, selectedProject.testTypeEnum!, selectedProject.testProcedureEnum!, selectedProject.projectID!).then((res) {
service.getCovidTestProceduresList(context, selectedProject!.testTypeEnum!, selectedProject!.testProcedureEnum!, selectedProject!.projectID!).then((res) {
if (res['MessageStatus'] == 1) {
setState(() {
res['COVID19_TestProceduresList'].forEach((v) {

@ -44,7 +44,7 @@ class _SendFeedbackPageState extends State<SendFeedbackPage> {
TextEditingController messageController = TextEditingController();
List<String> images = [];
late String title;
AppoitmentAllHistoryResultList appointHistory = AppoitmentAllHistoryResultList();
AppoitmentAllHistoryResultList? appointHistory = AppoitmentAllHistoryResultList();
bool isShowListAppointHistory = true;
String message = "";
final formKey = GlobalKey<FormState>();
@ -82,10 +82,11 @@ class _SendFeedbackPageState extends State<SendFeedbackPage> {
return TranslationBase.of(context).notClassified;
}
setMessageType(MessageType messageType) {
setMessageType(MessageType messageType,AppoitmentAllHistoryResultList? appointHistory) {
print(widget);
setState(() {
this.messageType = messageType;
this.appointHistory = widget.appointment!;
this.appointHistory = appointHistory;
});
}
@ -93,7 +94,7 @@ class _SendFeedbackPageState extends State<SendFeedbackPage> {
void initState() {
setState(() {
this.messageType = widget.messageType;
this.appointHistory = widget.appointment ?? AppoitmentAllHistoryResultList();
this.appointHistory = widget.appointment;
});
// requestPermissions();
event.controller.stream.listen((p) {
@ -177,15 +178,15 @@ class _SendFeedbackPageState extends State<SendFeedbackPage> {
},
child: DoctorCard(
onTap: null,
isInOutPatient: appointHistory.isInOutPatient,
name: appointHistory.doctorTitle! + " " + appointHistory.doctorNameObj!,
isInOutPatient: appointHistory!.isInOutPatient!,
name: appointHistory!.doctorTitle! + " " + appointHistory!.doctorNameObj!,
// billNo: _appointmentResult.invoiceNo,
profileUrl: appointHistory.doctorImageURL,
subName: appointHistory.projectName,
isLiveCareAppointment: appointHistory.isLiveCareAppointment,
date: DateUtil.convertStringToDate(appointHistory.appointmentDate!),
rating: appointHistory.actualDoctorRate! + 0.0,
appointmentTime: appointHistory.startTime!.substring(0, 5),
profileUrl: appointHistory!.doctorImageURL,
subName: appointHistory!.projectName,
isLiveCareAppointment: appointHistory!.isLiveCareAppointment,
date: DateUtil.convertStringToDate(appointHistory!.appointmentDate!),
rating: appointHistory!.actualDoctorRate! + 0.0,
appointmentTime: appointHistory!.startTime!.substring(0, 5),
),
),
SizedBox(height: 12),
@ -332,7 +333,7 @@ class _SendFeedbackPageState extends State<SendFeedbackPage> {
images = [];
});
selectedStatusIndex = 5;
setMessageType(MessageType.NON);
setMessageType(MessageType.NON, appointHistory);
GifLoaderDialogUtils.hideDialog(context);
AppToast.showSuccessToast(message: TranslationBase.of(context).yourFeedback);
} else {
@ -511,7 +512,7 @@ class _SendFeedbackPageState extends State<SendFeedbackPage> {
} else {
isShowListAppointHistory = false;
}
setMessageType(messageType);
setMessageType(messageType, appointHistory);
},
),
);

@ -261,7 +261,7 @@ class ServicesView extends StatelessWidget {
MaterialPageRoute(
builder: (BuildContext context) => MyWebView(
title: "HMG News",
selectedUrl: "https://twitter.com/hashtag/مجموعة_د_سليمان_الحبيب_الطبية?src=hashtag_click&f=live",
selectedUrl:"https://twitter.com/hmg" //"https://twitter.com/hashtag/مجموعة_د_سليمان_الحبيب_الطبية?src=hashtag_click&f=live",
),
),
);

@ -23,7 +23,7 @@ class AppToast {
static void showSuccessToast({
required String message,
Toast toastLength = Toast.LENGTH_LONG,
int? timeInSeconds,
int timeInSeconds =2,
double fontSize = 16,
ToastGravity toastGravity = ToastGravity.TOP,
Color textColor = Colors.white,
@ -31,7 +31,7 @@ class AppToast {
int? elevation,
int imageSize = 32,
}) {
Fluttertoast.showToast(msg: message, toastLength: toastLength, gravity: toastGravity, timeInSecForIosWeb: timeInSeconds!, backgroundColor: Colors.green, textColor: textColor, fontSize: fontSize);
Fluttertoast.showToast(msg: message, toastLength: toastLength, gravity: toastGravity, timeInSecForIosWeb: timeInSeconds, backgroundColor: Colors.green, textColor: textColor, fontSize: fontSize);
}
static void showErrorToast({

@ -128,8 +128,8 @@ class LocationUtils {
heading: 0.0,
speed: 0.0,
speedAccuracy: 1,
altitudeAccuracy: 0,
headingAccuracy: 0,
// altitudeAccuracy: 0,
// headingAccuracy: 0,
// Added by Aamir
),
);

@ -529,7 +529,7 @@ class _FloatingSearchButton extends State<FloatingSearchButton> with TickerProvi
Navigator.of(context).push(MaterialPageRoute(
builder: (BuildContext context) => MyWebView(
title: "HMG News",
selectedUrl: "https://twitter.com/hashtag/مجموعة_د_سليمان_الحبيب_الطبية?src=hashtag_click&f=live",
selectedUrl:"https://twitter.com/hmg" // "https://twitter.com/hashtag/مجموعة_د_سليمان_الحبيب_الطبية?src=hashtag_click&f=live",
)));
}
break;

Loading…
Cancel
Save