|
|
|
@ -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();
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|