Updates & fixes

merge-requests/390/head
haroon amjad 3 years ago
parent 8e7786cb96
commit 45272d251c

@ -48,8 +48,10 @@ class AppointmentRateService extends BaseService {
appointmentRate.doctorID = doctorID;
appointmentRate.clinicID = clinicID;
appointmentRate.note = note;
appointmentRate.createdBy = 2;
appointmentRate.editedBy = 2;
await baseAppClient.post(GET_APPOINTMENT_DETAILS_BY_NO,
await baseAppClient.post(NEW_RATE_APPOINTMENT_URL,
onSuccess: (dynamic response, int statusCode) {},
onFailure: (String error, int statusCode) {
hasError = true;

@ -53,6 +53,7 @@ class _DentalComplaintsState extends State<DentalComplaints> {
appBarTitle: "Symptoms",
showNewAppBar: true,
showNewAppBarTitle: true,
isShowDecPage: false,
backgroundColor: CustomColors.appBackgroudGreyColor,
body: Container(
child: !hasDentalPlan

@ -173,7 +173,7 @@ class _SearchByClinicState extends State<SearchByClinic> {
),
),
Text(
"30",
projectViewModel.isLogin ? projectViewModel.user.age.toString() : "",
style: TextStyle(
fontSize: 15,
letterSpacing: -0.59,
@ -251,6 +251,9 @@ class _SearchByClinicState extends State<SearchByClinic> {
height: 18,
child: DropdownButtonHideUnderline(
child: DropdownButton<String>(
onTap: () {
print("Clicked");
},
key: clinicDropdownKey,
hint: new Text(
TranslationBase.of(context).selectClinic,
@ -270,6 +273,9 @@ class _SearchByClinicState extends State<SearchByClinic> {
item.liveCareServiceID.toString(),
child: Row(mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [
Text(item.clinicDescription),
item.isLiveCareClinicAndOnline
? SvgPicture.asset('assets/images/new-design/video_icon_green_right.svg', height: 12, width: 12, fit: BoxFit.cover)
: Container(),
]),
);
}).toList(),
@ -448,8 +454,10 @@ class _SearchByClinicState extends State<SearchByClinic> {
page: LiveCareBookAppointment(clinicName: "Family Medicine", liveCareClinicID: dropdownValue.split("-")[2], liveCareServiceID: dropdownValue.split("-")[3]),
),
).then((value) {
print(value);
if (value == "false") dropdownValue = "";
setState(() {
print(value);
if (value == "false") dropdownValue = null;
});
if (value == "livecare") {
Navigator.push(context, FadePage(page: LiveCareHome()));
}
@ -517,13 +525,20 @@ class _SearchByClinicState extends State<SearchByClinic> {
FadePage(
page: DentalComplaints(searchInfo: searchInfo),
),
);
).then((value) {
setState(() {
dropdownValue = null;
});
});
}
Future navigateToSearchResults(context, List<DoctorList> docList, List<PatientDoctorAppointmentList> patientDoctorAppointmentListHospital) async {
isProjectLoaded = false;
Navigator.push(context, FadePage(page: SearchResults(isLiveCareAppointment: false, doctorsList: docList, patientDoctorAppointmentListHospital: patientDoctorAppointmentListHospital)))
.then((value) {
setState(() {
dropdownValue = null;
});
getProjectsList();
});
}

Loading…
Cancel
Save