implementing Dental Appointment flow
parent
a7f5dfab5c
commit
1886f3a763
@ -0,0 +1,10 @@
|
||||
class SearchInfo {
|
||||
int ProjectID;
|
||||
int ClinicID;
|
||||
String DoctorName;
|
||||
String SelectedDate;
|
||||
String SelectedTime;
|
||||
String currentLat;
|
||||
String currentLong;
|
||||
DateTime date;
|
||||
}
|
||||
@ -0,0 +1,49 @@
|
||||
import 'package:diplomaticquarterapp/models/Appointments/SearchInfoModel.dart';
|
||||
import 'package:diplomaticquarterapp/services/clinic_services/get_clinic_service.dart';
|
||||
import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:smart_progress_bar/smart_progress_bar.dart';
|
||||
|
||||
class DentalComplaints extends StatefulWidget {
|
||||
SearchInfo searchInfo;
|
||||
|
||||
DentalComplaints({@required this.searchInfo});
|
||||
|
||||
@override
|
||||
_DentalComplaintsState createState() => _DentalComplaintsState();
|
||||
}
|
||||
|
||||
class _DentalComplaintsState extends State<DentalComplaints> {
|
||||
@override
|
||||
void initState() {
|
||||
WidgetsBinding.instance
|
||||
.addPostFrameCallback((_) => getChiefComplaintsList());
|
||||
super.initState();
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return AppScaffold(
|
||||
isShowAppBar: true,
|
||||
appBarTitle: "Symptoms",
|
||||
body: Container(),
|
||||
);
|
||||
}
|
||||
|
||||
getChiefComplaintsList() {
|
||||
ClinicListService service = new ClinicListService();
|
||||
service
|
||||
.getChiefComplaintsList(
|
||||
widget.searchInfo.ClinicID, widget.searchInfo.ProjectID, context)
|
||||
.then((res) {
|
||||
if (res['MessageStatus'] == 1) {
|
||||
// setState(() {
|
||||
// res['List_DentalChiefComplain'].forEach((v) {});
|
||||
// });
|
||||
} else {}
|
||||
}).catchError((err) {
|
||||
print(err);
|
||||
}).showProgressBar(
|
||||
text: "Loading", backgroundColor: Colors.blue.withOpacity(0.6));
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue