|
|
|
@ -1,5 +1,7 @@
|
|
|
|
import 'package:diplomaticquarterapp/core/model/doctor/patient_doctor_appointment.dart';
|
|
|
|
import 'package:diplomaticquarterapp/core/model/doctor/patient_doctor_appointment.dart';
|
|
|
|
import 'package:diplomaticquarterapp/core/viewModels/medical/my_doctor_view_model.dart';
|
|
|
|
import 'package:diplomaticquarterapp/core/viewModels/medical/my_doctor_view_model.dart';
|
|
|
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/BookAppointment/components/DocAvailableAppointments.dart';
|
|
|
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/BookAppointment/widgets/DoctorView.dart';
|
|
|
|
import 'package:diplomaticquarterapp/pages/base/base_view.dart';
|
|
|
|
import 'package:diplomaticquarterapp/pages/base/base_view.dart';
|
|
|
|
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
|
|
|
|
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
|
|
|
|
import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
|
|
|
|
import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
|
|
|
|
@ -35,11 +37,11 @@ class _DoctorProfilePageState extends State<DoctorProfilePage>
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return BaseView<MyDoctorViewModel>(
|
|
|
|
return BaseView<MyDoctorViewModel>(
|
|
|
|
onModelReady: (model) => model.getDoctorProfileAndRating(
|
|
|
|
/* onModelReady: (model) => model.getDoctorProfileAndRating(
|
|
|
|
doctorId: widget.patientDoctorAppointment.doctorID,
|
|
|
|
doctorId: widget.patientDoctorAppointment.doctorID,
|
|
|
|
clinicID: widget.patientDoctorAppointment.clinicID,
|
|
|
|
clinicID: widget.patientDoctorAppointment.clinicID,
|
|
|
|
projectID: widget.patientDoctorAppointment.projectID),
|
|
|
|
projectID: widget.patientDoctorAppointment.projectID),*/
|
|
|
|
builder: (context, model, widget) => AppScaffold(
|
|
|
|
builder: (context, model, widget) => DoctorView(doctor: model.doctorList,)/*AppScaffold(
|
|
|
|
isShowAppBar: true,
|
|
|
|
isShowAppBar: true,
|
|
|
|
appBarTitle: 'Doctor Profile',
|
|
|
|
appBarTitle: 'Doctor Profile',
|
|
|
|
baseViewModel: model,
|
|
|
|
baseViewModel: model,
|
|
|
|
@ -62,8 +64,7 @@ class _DoctorProfilePageState extends State<DoctorProfilePage>
|
|
|
|
width: 50,
|
|
|
|
width: 50,
|
|
|
|
height: 50,
|
|
|
|
height: 50,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
shape: BoxShape.circle,
|
|
|
|
shape: BoxShape.circle, color: Colors.grey),
|
|
|
|
color: Colors.grey),
|
|
|
|
|
|
|
|
child: Icon(
|
|
|
|
child: Icon(
|
|
|
|
Icons.calendar_view_day,
|
|
|
|
Icons.calendar_view_day,
|
|
|
|
size: 25,
|
|
|
|
size: 25,
|
|
|
|
@ -82,8 +83,7 @@ class _DoctorProfilePageState extends State<DoctorProfilePage>
|
|
|
|
width: 50,
|
|
|
|
width: 50,
|
|
|
|
height: 50,
|
|
|
|
height: 50,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
shape: BoxShape.circle,
|
|
|
|
shape: BoxShape.circle, color: Colors.grey),
|
|
|
|
color: Colors.grey),
|
|
|
|
|
|
|
|
child: Icon(
|
|
|
|
child: Icon(
|
|
|
|
Icons.format_list_bulleted,
|
|
|
|
Icons.format_list_bulleted,
|
|
|
|
size: 25,
|
|
|
|
size: 25,
|
|
|
|
@ -115,8 +115,7 @@ class _DoctorProfilePageState extends State<DoctorProfilePage>
|
|
|
|
alignment: Alignment.center,
|
|
|
|
alignment: Alignment.center,
|
|
|
|
child: RatingBar.readOnly(
|
|
|
|
child: RatingBar.readOnly(
|
|
|
|
initialRating:
|
|
|
|
initialRating:
|
|
|
|
model.doctorRating.doctorRate?.toDouble() ??
|
|
|
|
model.doctorRating.doctorRate?.toDouble() ?? 0.0,
|
|
|
|
0.0,
|
|
|
|
|
|
|
|
size: 35.0,
|
|
|
|
size: 35.0,
|
|
|
|
filledColor: Colors.yellow[700],
|
|
|
|
filledColor: Colors.yellow[700],
|
|
|
|
emptyColor: Colors.grey[500],
|
|
|
|
emptyColor: Colors.grey[500],
|
|
|
|
@ -152,8 +151,7 @@ class _DoctorProfilePageState extends State<DoctorProfilePage>
|
|
|
|
child: Text('Doctor Information',
|
|
|
|
child: Text('Doctor Information',
|
|
|
|
style: TextStyle(color: Colors.black))),
|
|
|
|
style: TextStyle(color: Colors.black))),
|
|
|
|
Tab(
|
|
|
|
Tab(
|
|
|
|
child: Text(
|
|
|
|
child: Text(TranslationBase.of(context).availableAppo,
|
|
|
|
TranslationBase.of(context).availableAppo,
|
|
|
|
|
|
|
|
style: TextStyle(color: Colors.black)),
|
|
|
|
style: TextStyle(color: Colors.black)),
|
|
|
|
)
|
|
|
|
)
|
|
|
|
],
|
|
|
|
],
|
|
|
|
@ -167,7 +165,8 @@ class _DoctorProfilePageState extends State<DoctorProfilePage>
|
|
|
|
DoctorInformation(
|
|
|
|
DoctorInformation(
|
|
|
|
doctorProfile: model.doctorProfile,
|
|
|
|
doctorProfile: model.doctorProfile,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Container()
|
|
|
|
Container(),
|
|
|
|
|
|
|
|
// DocAvailableAppointments(doctor: model.doctorList,)
|
|
|
|
],
|
|
|
|
],
|
|
|
|
controller: _tabController,
|
|
|
|
controller: _tabController,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
@ -178,6 +177,7 @@ class _DoctorProfilePageState extends State<DoctorProfilePage>
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
));
|
|
|
|
)*/,
|
|
|
|
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|