|
|
|
@ -2,6 +2,7 @@ import 'package:diplomaticquarterapp/core/viewModels/project_view_model.dart';
|
|
|
|
import 'package:diplomaticquarterapp/models/Appointments/AppoimentAllHistoryResultList.dart';
|
|
|
|
import 'package:diplomaticquarterapp/models/Appointments/AppoimentAllHistoryResultList.dart';
|
|
|
|
import 'package:diplomaticquarterapp/models/Appointments/DoctorListResponse.dart';
|
|
|
|
import 'package:diplomaticquarterapp/models/Appointments/DoctorListResponse.dart';
|
|
|
|
import 'package:diplomaticquarterapp/models/Appointments/DoctorRateDetails.dart';
|
|
|
|
import 'package:diplomaticquarterapp/models/Appointments/DoctorRateDetails.dart';
|
|
|
|
|
|
|
|
import 'package:diplomaticquarterapp/models/header_model.dart';
|
|
|
|
import 'package:diplomaticquarterapp/pages/BookAppointment/BookConfirm.dart';
|
|
|
|
import 'package:diplomaticquarterapp/pages/BookAppointment/BookConfirm.dart';
|
|
|
|
import 'package:diplomaticquarterapp/pages/BookAppointment/components/DocAvailableAppointments.dart';
|
|
|
|
import 'package:diplomaticquarterapp/pages/BookAppointment/components/DocAvailableAppointments.dart';
|
|
|
|
import 'package:diplomaticquarterapp/services/appointment_services/GetDoctorsList.dart';
|
|
|
|
import 'package:diplomaticquarterapp/services/appointment_services/GetDoctorsList.dart';
|
|
|
|
@ -9,6 +10,7 @@ import 'package:diplomaticquarterapp/uitl/app_toast.dart';
|
|
|
|
import 'package:diplomaticquarterapp/uitl/date_uitl.dart';
|
|
|
|
import 'package:diplomaticquarterapp/uitl/date_uitl.dart';
|
|
|
|
import 'package:diplomaticquarterapp/uitl/gif_loader_dialog_utils.dart';
|
|
|
|
import 'package:diplomaticquarterapp/uitl/gif_loader_dialog_utils.dart';
|
|
|
|
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
|
|
|
|
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
|
|
|
|
|
|
|
|
import 'package:diplomaticquarterapp/widgets/new_design/doctor_header.dart';
|
|
|
|
import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
|
|
|
|
import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
|
|
|
|
import 'package:diplomaticquarterapp/widgets/transitions/fade_page.dart';
|
|
|
|
import 'package:diplomaticquarterapp/widgets/transitions/fade_page.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
@ -29,8 +31,7 @@ class AppointmentDetails extends StatefulWidget {
|
|
|
|
_AppointmentDetailsState createState() => _AppointmentDetailsState();
|
|
|
|
_AppointmentDetailsState createState() => _AppointmentDetailsState();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
class _AppointmentDetailsState extends State<AppointmentDetails>
|
|
|
|
class _AppointmentDetailsState extends State<AppointmentDetails> with SingleTickerProviderStateMixin {
|
|
|
|
with SingleTickerProviderStateMixin {
|
|
|
|
|
|
|
|
static TabController _tabController;
|
|
|
|
static TabController _tabController;
|
|
|
|
|
|
|
|
|
|
|
|
List<DoctorRateDetails> doctorDetailsList = List();
|
|
|
|
List<DoctorRateDetails> doctorDetailsList = List();
|
|
|
|
@ -56,6 +57,9 @@ class _AppointmentDetailsState extends State<AppointmentDetails>
|
|
|
|
return AppScaffold(
|
|
|
|
return AppScaffold(
|
|
|
|
appBarTitle: widget.appo.doctorNameObj,
|
|
|
|
appBarTitle: widget.appo.doctorNameObj,
|
|
|
|
isShowAppBar: true,
|
|
|
|
isShowAppBar: true,
|
|
|
|
|
|
|
|
showNewAppBar: true,
|
|
|
|
|
|
|
|
backgroundColor: Color(0xffF8F8F8),
|
|
|
|
|
|
|
|
showNewAppBarTitle: true,
|
|
|
|
bottomSheet: AppointmentDetails.showFooterButton
|
|
|
|
bottomSheet: AppointmentDetails.showFooterButton
|
|
|
|
? Container(
|
|
|
|
? Container(
|
|
|
|
width: MediaQuery.of(context).size.width,
|
|
|
|
width: MediaQuery.of(context).size.width,
|
|
|
|
@ -73,15 +77,15 @@ class _AppointmentDetailsState extends State<AppointmentDetails>
|
|
|
|
disabledTextColor: Colors.white,
|
|
|
|
disabledTextColor: Colors.white,
|
|
|
|
disabledColor: new Color(0xFFbcc2c4),
|
|
|
|
disabledColor: new Color(0xFFbcc2c4),
|
|
|
|
onPressed: goToBookConfirm,
|
|
|
|
onPressed: goToBookConfirm,
|
|
|
|
child: Text(TranslationBase.of(context).bookNow,
|
|
|
|
child: Text(TranslationBase.of(context).bookNow, style: TextStyle(fontSize: 18.0)),
|
|
|
|
style: TextStyle(fontSize: 18.0)),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
)
|
|
|
|
: null,
|
|
|
|
: null,
|
|
|
|
body: Container(
|
|
|
|
body: Container(
|
|
|
|
color: new Color(0xFFf6f6f6),
|
|
|
|
color: new Color(0xFFf8f8f8),
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
|
|
|
|
physics: BouncingScrollPhysics(),
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: <Widget>[
|
|
|
|
children: <Widget>[
|
|
|
|
@ -90,100 +94,99 @@ class _AppointmentDetailsState extends State<AppointmentDetails>
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: <Widget>[
|
|
|
|
children: <Widget>[
|
|
|
|
Container(
|
|
|
|
// Container(
|
|
|
|
margin: EdgeInsets.only(top: 20.0),
|
|
|
|
// margin: EdgeInsets.only(top: 20.0),
|
|
|
|
alignment: Alignment.center,
|
|
|
|
// alignment: Alignment.center,
|
|
|
|
child: ClipRRect(
|
|
|
|
// child: ClipRRect(
|
|
|
|
borderRadius: BorderRadius.circular(100.0),
|
|
|
|
// borderRadius: BorderRadius.circular(100.0),
|
|
|
|
child: Image.network(widget.appo.doctorImageURL,
|
|
|
|
// child: Image.network(widget.appo.doctorImageURL, fit: BoxFit.fill, height: 120.0, width: 120.0),
|
|
|
|
fit: BoxFit.fill, height: 120.0, width: 120.0),
|
|
|
|
// ),
|
|
|
|
),
|
|
|
|
// ),
|
|
|
|
),
|
|
|
|
// Container(
|
|
|
|
Container(
|
|
|
|
// margin: EdgeInsets.only(top: 10.0, left: 10.0, right: 10.0),
|
|
|
|
margin:
|
|
|
|
// alignment: Alignment.center,
|
|
|
|
EdgeInsets.only(top: 10.0, left: 10.0, right: 10.0),
|
|
|
|
// child:
|
|
|
|
alignment: Alignment.center,
|
|
|
|
// Text(widget.appo.doctorTitle + " " + widget.appo.doctorNameObj, textAlign: TextAlign.center, style: TextStyle(fontSize: 20.0, color: Colors.grey[900], letterSpacing: 1.0)),
|
|
|
|
child: Text(
|
|
|
|
// ),
|
|
|
|
widget.appo.doctorTitle +
|
|
|
|
// Container(
|
|
|
|
" " +
|
|
|
|
// margin: EdgeInsets.only(top: 10.0),
|
|
|
|
widget.appo.doctorNameObj,
|
|
|
|
// alignment: Alignment.center,
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
// child: Text(getDoctorSpeciality(widget.appo.doctorSpeciality), style: TextStyle(fontSize: 12.0, color: Colors.grey[900], letterSpacing: 1.0)),
|
|
|
|
style: TextStyle(
|
|
|
|
// ),
|
|
|
|
fontSize: 20.0,
|
|
|
|
// Container(
|
|
|
|
color: Colors.grey[900],
|
|
|
|
// margin: EdgeInsets.only(top: 5.0),
|
|
|
|
letterSpacing: 1.0)),
|
|
|
|
// alignment: Alignment.center,
|
|
|
|
),
|
|
|
|
// child: RatingBar.readOnly(
|
|
|
|
Container(
|
|
|
|
// initialRating: widget.appo.actualDoctorRate.toDouble(),
|
|
|
|
margin: EdgeInsets.only(top: 10.0),
|
|
|
|
// size: 35.0,
|
|
|
|
alignment: Alignment.center,
|
|
|
|
// filledColor: Colors.yellow[700],
|
|
|
|
child: Text(
|
|
|
|
// emptyColor: Colors.grey[500],
|
|
|
|
getDoctorSpeciality(widget.appo.doctorSpeciality),
|
|
|
|
// isHalfAllowed: true,
|
|
|
|
style: TextStyle(
|
|
|
|
// halfFilledIcon: Icons.star_half,
|
|
|
|
fontSize: 12.0,
|
|
|
|
// filledIcon: Icons.star,
|
|
|
|
color: Colors.grey[900],
|
|
|
|
// emptyIcon: Icons.star,
|
|
|
|
letterSpacing: 1.0)),
|
|
|
|
// ),
|
|
|
|
),
|
|
|
|
// ),
|
|
|
|
Container(
|
|
|
|
// InkWell(
|
|
|
|
margin: EdgeInsets.only(top: 5.0),
|
|
|
|
// onTap: () {
|
|
|
|
alignment: Alignment.center,
|
|
|
|
// getDoctorRatingsDetails();
|
|
|
|
child: RatingBar.readOnly(
|
|
|
|
// },
|
|
|
|
initialRating: widget.appo.actualDoctorRate.toDouble(),
|
|
|
|
// child: Container(
|
|
|
|
size: 35.0,
|
|
|
|
// margin: EdgeInsets.only(top: 5.0),
|
|
|
|
filledColor: Colors.yellow[700],
|
|
|
|
// alignment: Alignment.center,
|
|
|
|
emptyColor: Colors.grey[500],
|
|
|
|
// child: Text("(" + widget.appo.noOfPatientsRate.toString() + " " + TranslationBase.of(context).reviews + ")",
|
|
|
|
isHalfAllowed: true,
|
|
|
|
// style: TextStyle(
|
|
|
|
halfFilledIcon: Icons.star_half,
|
|
|
|
// fontSize: 14.0,
|
|
|
|
filledIcon: Icons.star,
|
|
|
|
// color: Colors.blue[800],
|
|
|
|
emptyIcon: Icons.star,
|
|
|
|
// letterSpacing: 1.0,
|
|
|
|
),
|
|
|
|
// decoration: TextDecoration.underline,
|
|
|
|
),
|
|
|
|
// )),
|
|
|
|
InkWell(
|
|
|
|
// ),
|
|
|
|
onTap: () {
|
|
|
|
// ),
|
|
|
|
getDoctorRatingsDetails();
|
|
|
|
// Container(
|
|
|
|
},
|
|
|
|
// alignment: Alignment.center,
|
|
|
|
child: Container(
|
|
|
|
// child: Text(DateUtil.getWeekDayMonthDayYearDateFormatted(DateUtil.convertStringToDate(widget.appo.appointmentDate), projectViewModel.isArabic ? "ar" : "en")),
|
|
|
|
margin: EdgeInsets.only(top: 5.0),
|
|
|
|
// ),
|
|
|
|
alignment: Alignment.center,
|
|
|
|
// Container(
|
|
|
|
child: Text(
|
|
|
|
// alignment: Alignment.center,
|
|
|
|
"(" +
|
|
|
|
// child: Text(widget.appo.startTime.substring(0, 5)),
|
|
|
|
widget.appo.noOfPatientsRate.toString() +
|
|
|
|
// ),
|
|
|
|
" " +
|
|
|
|
// Container(
|
|
|
|
TranslationBase.of(context).reviews +
|
|
|
|
// margin: EdgeInsets.only(top: 10.0),
|
|
|
|
")",
|
|
|
|
// child: Divider(
|
|
|
|
style: TextStyle(
|
|
|
|
// color: Colors.grey[500],
|
|
|
|
fontSize: 14.0,
|
|
|
|
// ),
|
|
|
|
color: Colors.blue[800],
|
|
|
|
// ),
|
|
|
|
letterSpacing: 1.0,
|
|
|
|
DoctorHeader(
|
|
|
|
decoration: TextDecoration.underline,
|
|
|
|
headerModel: HeaderModel(
|
|
|
|
)),
|
|
|
|
widget.appo.doctorTitle + " " + widget.appo.doctorNameObj,
|
|
|
|
),
|
|
|
|
widget.appo.doctorImageURL,
|
|
|
|
),
|
|
|
|
widget.appo.doctorSpeciality,
|
|
|
|
Container(
|
|
|
|
"",
|
|
|
|
alignment: Alignment.center,
|
|
|
|
widget.appo.projectName,
|
|
|
|
child: Text(DateUtil.getWeekDayMonthDayYearDateFormatted(
|
|
|
|
DateUtil.convertStringToDate(widget.appo.appointmentDate),
|
|
|
|
DateUtil.convertStringToDate(
|
|
|
|
widget.appo.startTime.substring(0, 5),
|
|
|
|
widget.appo.appointmentDate),
|
|
|
|
null,
|
|
|
|
projectViewModel.isArabic ? "ar" : "en")),
|
|
|
|
widget.appo.doctorRate,
|
|
|
|
),
|
|
|
|
widget.appo.actualDoctorRate,
|
|
|
|
Container(
|
|
|
|
widget.appo.noOfPatientsRate,
|
|
|
|
alignment: Alignment.center,
|
|
|
|
"",
|
|
|
|
child: Text(widget.appo.startTime.substring(0, 5)),
|
|
|
|
//model.user.emailAddress,
|
|
|
|
),
|
|
|
|
|
|
|
|
Container(
|
|
|
|
|
|
|
|
margin: EdgeInsets.only(top: 10.0),
|
|
|
|
|
|
|
|
child: Divider(
|
|
|
|
|
|
|
|
color: Colors.grey[500],
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
isNeedToShowButton: _tabController.index == 1,
|
|
|
|
|
|
|
|
buttonTitle: TranslationBase.of(context).schedule,
|
|
|
|
|
|
|
|
buttonIcon: 'assets/images/new/Boo_ Appointment.svg',
|
|
|
|
|
|
|
|
showConfirmMessageDialog: false,
|
|
|
|
|
|
|
|
onRatingAndReviewTap: getDoctorRatingsDetails,
|
|
|
|
|
|
|
|
onTap: (){},
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
SizedBox(height: 10),
|
|
|
|
TabBar(
|
|
|
|
TabBar(
|
|
|
|
onTap: (index) {
|
|
|
|
onTap: (index) {
|
|
|
|
setState(() {
|
|
|
|
setState(() {
|
|
|
|
if (index == 1) {
|
|
|
|
if (index == 1) {
|
|
|
|
if (widget.appo.clinicID == 17 ||
|
|
|
|
if (widget.appo.clinicID == 17 || widget.appo.clinicID == 23 || widget.appo.isExecludeDoctor) {
|
|
|
|
widget.appo.clinicID == 23 ||
|
|
|
|
_tabController.index = _tabController.previousIndex;
|
|
|
|
widget.appo.isExecludeDoctor) {
|
|
|
|
|
|
|
|
_tabController.index =
|
|
|
|
|
|
|
|
_tabController.previousIndex;
|
|
|
|
|
|
|
|
AppointmentDetails.showFooterButton = false;
|
|
|
|
AppointmentDetails.showFooterButton = false;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
AppointmentDetails.showFooterButton = true;
|
|
|
|
AppointmentDetails.showFooterButton = true;
|
|
|
|
@ -192,21 +195,13 @@ class _AppointmentDetailsState extends State<AppointmentDetails>
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
tabs: [
|
|
|
|
tabs: [
|
|
|
|
Tab(
|
|
|
|
Tab(child: Text(TranslationBase.of(context).appoActions, style: TextStyle(color: Colors.black))),
|
|
|
|
child: Text(TranslationBase.of(context).appoActions,
|
|
|
|
widget.appo.clinicID == 17 || widget.appo.clinicID == 23 || widget.appo.isExecludeDoctor
|
|
|
|
style: TextStyle(color: Colors.black))),
|
|
|
|
|
|
|
|
widget.appo.clinicID == 17 ||
|
|
|
|
|
|
|
|
widget.appo.clinicID == 23 ||
|
|
|
|
|
|
|
|
widget.appo.isExecludeDoctor
|
|
|
|
|
|
|
|
? Tab(
|
|
|
|
? Tab(
|
|
|
|
child: Text(
|
|
|
|
child: Text(TranslationBase.of(context).availableAppo, style: TextStyle(color: Colors.grey)),
|
|
|
|
TranslationBase.of(context).availableAppo,
|
|
|
|
|
|
|
|
style: TextStyle(color: Colors.grey)),
|
|
|
|
|
|
|
|
)
|
|
|
|
)
|
|
|
|
: Tab(
|
|
|
|
: Tab(
|
|
|
|
child: Text(
|
|
|
|
child: Text(TranslationBase.of(context).availableAppo, style: TextStyle(color: Colors.black)),
|
|
|
|
TranslationBase.of(context).availableAppo,
|
|
|
|
|
|
|
|
style: TextStyle(color: Colors.black)),
|
|
|
|
|
|
|
|
)
|
|
|
|
)
|
|
|
|
],
|
|
|
|
],
|
|
|
|
controller: _tabController,
|
|
|
|
controller: _tabController,
|
|
|
|
@ -219,14 +214,8 @@ class _AppointmentDetailsState extends State<AppointmentDetails>
|
|
|
|
child: TabBarView(
|
|
|
|
child: TabBarView(
|
|
|
|
physics: NeverScrollableScrollPhysics(),
|
|
|
|
physics: NeverScrollableScrollPhysics(),
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
AppointmentActions(
|
|
|
|
AppointmentActions(appo: widget.appo, tabController: _tabController, enableFooterButton: enableFooterButton),
|
|
|
|
appo: widget.appo,
|
|
|
|
DocAvailableAppointments(doctor: getDoctorObject(), isLiveCareAppointment: widget.appo.isLiveCareAppointment)
|
|
|
|
tabController: _tabController,
|
|
|
|
|
|
|
|
enableFooterButton: enableFooterButton),
|
|
|
|
|
|
|
|
DocAvailableAppointments(
|
|
|
|
|
|
|
|
doctor: getDoctorObject(),
|
|
|
|
|
|
|
|
isLiveCareAppointment:
|
|
|
|
|
|
|
|
widget.appo.isLiveCareAppointment)
|
|
|
|
|
|
|
|
],
|
|
|
|
],
|
|
|
|
controller: _tabController,
|
|
|
|
controller: _tabController,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
@ -262,7 +251,7 @@ class _AppointmentDetailsState extends State<AppointmentDetails>
|
|
|
|
selectedTime: DocAvailableAppointments.selectedTime)));
|
|
|
|
selectedTime: DocAvailableAppointments.selectedTime)));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
getDoctorRatingsDetails() {
|
|
|
|
void getDoctorRatingsDetails() {
|
|
|
|
GifLoaderDialogUtils.showMyDialog(context);
|
|
|
|
GifLoaderDialogUtils.showMyDialog(context);
|
|
|
|
DoctorsListService service = new DoctorsListService();
|
|
|
|
DoctorsListService service = new DoctorsListService();
|
|
|
|
service.getDoctorsRatingDetails(widget.appo.doctorID, context).then((res) {
|
|
|
|
service.getDoctorsRatingDetails(widget.appo.doctorID, context).then((res) {
|
|
|
|
@ -308,27 +297,13 @@ class _AppointmentDetailsState extends State<AppointmentDetails>
|
|
|
|
color: Theme.of(context).primaryColor,
|
|
|
|
color: Theme.of(context).primaryColor,
|
|
|
|
margin: EdgeInsets.only(bottom: 5.0),
|
|
|
|
margin: EdgeInsets.only(bottom: 5.0),
|
|
|
|
padding: EdgeInsets.all(10.0),
|
|
|
|
padding: EdgeInsets.all(10.0),
|
|
|
|
child: Text(
|
|
|
|
child: Text(TranslationBase.of(context).doctorRating, style: TextStyle(fontSize: 22.0, color: Colors.white))),
|
|
|
|
TranslationBase.of(context).doctorRating,
|
|
|
|
Container(margin: EdgeInsets.only(top: 0.0), child: Text(this.widget.appo.actualDoctorRate.ceilToDouble().toString(), style: TextStyle(fontSize: 32.0, color: Colors.black))),
|
|
|
|
style: TextStyle(
|
|
|
|
|
|
|
|
fontSize: 22.0, color: Colors.white))),
|
|
|
|
|
|
|
|
Container(
|
|
|
|
|
|
|
|
margin: EdgeInsets.only(top: 0.0),
|
|
|
|
|
|
|
|
child: Text(
|
|
|
|
|
|
|
|
this
|
|
|
|
|
|
|
|
.widget
|
|
|
|
|
|
|
|
.appo
|
|
|
|
|
|
|
|
.actualDoctorRate
|
|
|
|
|
|
|
|
.ceilToDouble()
|
|
|
|
|
|
|
|
.toString(),
|
|
|
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
|
|
|
fontSize: 32.0, color: Colors.black))),
|
|
|
|
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
margin: EdgeInsets.only(top: 5.0),
|
|
|
|
margin: EdgeInsets.only(top: 5.0),
|
|
|
|
alignment: Alignment.center,
|
|
|
|
alignment: Alignment.center,
|
|
|
|
child: RatingBar.readOnly(
|
|
|
|
child: RatingBar.readOnly(
|
|
|
|
initialRating:
|
|
|
|
initialRating: this.widget.appo.actualDoctorRate.toDouble(),
|
|
|
|
this.widget.appo.actualDoctorRate.toDouble(),
|
|
|
|
|
|
|
|
size: 35.0,
|
|
|
|
size: 35.0,
|
|
|
|
filledColor: Colors.yellow[700],
|
|
|
|
filledColor: Colors.yellow[700],
|
|
|
|
emptyColor: Colors.grey[500],
|
|
|
|
emptyColor: Colors.grey[500],
|
|
|
|
@ -340,30 +315,19 @@ class _AppointmentDetailsState extends State<AppointmentDetails>
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
margin: EdgeInsets.only(top: 10.0),
|
|
|
|
margin: EdgeInsets.only(top: 10.0),
|
|
|
|
child: Text(
|
|
|
|
child: Text(this.widget.appo.noOfPatientsRate.toString() + " " + TranslationBase.of(context).reviews, style: TextStyle(fontSize: 14.0, color: Colors.black))),
|
|
|
|
this.widget.appo.noOfPatientsRate.toString() +
|
|
|
|
|
|
|
|
" " +
|
|
|
|
|
|
|
|
TranslationBase.of(context).reviews,
|
|
|
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
|
|
|
fontSize: 14.0, color: Colors.black))),
|
|
|
|
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
margin: EdgeInsets.only(top: 10.0),
|
|
|
|
margin: EdgeInsets.only(top: 10.0),
|
|
|
|
child: Row(
|
|
|
|
child: Row(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
width: 100.0,
|
|
|
|
width: 100.0,
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
margin: EdgeInsets.only(top: 10.0, left: 15.0, right: 15.0),
|
|
|
|
top: 10.0, left: 15.0, right: 15.0),
|
|
|
|
child: Text(TranslationBase.of(context).excellent, style: TextStyle(fontSize: 13.0, color: Colors.black))),
|
|
|
|
child: Text(
|
|
|
|
|
|
|
|
TranslationBase.of(context).excellent,
|
|
|
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
|
|
|
fontSize: 13.0,
|
|
|
|
|
|
|
|
color: Colors.black))),
|
|
|
|
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
margin: EdgeInsets.only(top: 10.0),
|
|
|
|
margin: EdgeInsets.only(top: 10.0),
|
|
|
|
child: SizedBox(
|
|
|
|
child: SizedBox(
|
|
|
|
width: getRatingWidth(
|
|
|
|
width: getRatingWidth(doctorDetailsList[0].patientNumber),
|
|
|
|
doctorDetailsList[0].patientNumber),
|
|
|
|
|
|
|
|
height: 6.0,
|
|
|
|
height: 6.0,
|
|
|
|
child: Container(
|
|
|
|
child: Container(
|
|
|
|
color: Colors.green[700],
|
|
|
|
color: Colors.green[700],
|
|
|
|
@ -378,18 +342,12 @@ class _AppointmentDetailsState extends State<AppointmentDetails>
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
width: 100.0,
|
|
|
|
width: 100.0,
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
margin: EdgeInsets.only(top: 10.0, left: 15.0, right: 15.0),
|
|
|
|
top: 10.0, left: 15.0, right: 15.0),
|
|
|
|
child: Text(TranslationBase.of(context).v_good, style: TextStyle(fontSize: 13.0, color: Colors.black))),
|
|
|
|
child: Text(
|
|
|
|
|
|
|
|
TranslationBase.of(context).v_good,
|
|
|
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
|
|
|
fontSize: 13.0,
|
|
|
|
|
|
|
|
color: Colors.black))),
|
|
|
|
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
margin: EdgeInsets.only(top: 10.0),
|
|
|
|
margin: EdgeInsets.only(top: 10.0),
|
|
|
|
child: SizedBox(
|
|
|
|
child: SizedBox(
|
|
|
|
width: getRatingWidth(
|
|
|
|
width: getRatingWidth(doctorDetailsList[1].patientNumber),
|
|
|
|
doctorDetailsList[1].patientNumber),
|
|
|
|
|
|
|
|
height: 6.0,
|
|
|
|
height: 6.0,
|
|
|
|
child: Container(
|
|
|
|
child: Container(
|
|
|
|
color: Color(0xffB7B723),
|
|
|
|
color: Color(0xffB7B723),
|
|
|
|
@ -404,18 +362,12 @@ class _AppointmentDetailsState extends State<AppointmentDetails>
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
width: 100.0,
|
|
|
|
width: 100.0,
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
margin: EdgeInsets.only(top: 10.0, left: 15.0, right: 15.0),
|
|
|
|
top: 10.0, left: 15.0, right: 15.0),
|
|
|
|
child: Text(TranslationBase.of(context).good, style: TextStyle(fontSize: 13.0, color: Colors.black))),
|
|
|
|
child: Text(
|
|
|
|
|
|
|
|
TranslationBase.of(context).good,
|
|
|
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
|
|
|
fontSize: 13.0,
|
|
|
|
|
|
|
|
color: Colors.black))),
|
|
|
|
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
margin: EdgeInsets.only(top: 10.0),
|
|
|
|
margin: EdgeInsets.only(top: 10.0),
|
|
|
|
child: SizedBox(
|
|
|
|
child: SizedBox(
|
|
|
|
width: getRatingWidth(
|
|
|
|
width: getRatingWidth(doctorDetailsList[2].patientNumber),
|
|
|
|
doctorDetailsList[2].patientNumber),
|
|
|
|
|
|
|
|
height: 6.0,
|
|
|
|
height: 6.0,
|
|
|
|
child: Container(
|
|
|
|
child: Container(
|
|
|
|
color: Color(0xffEBA727),
|
|
|
|
color: Color(0xffEBA727),
|
|
|
|
@ -430,18 +382,12 @@ class _AppointmentDetailsState extends State<AppointmentDetails>
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
width: 100.0,
|
|
|
|
width: 100.0,
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
margin: EdgeInsets.only(top: 10.0, left: 15.0, right: 15.0),
|
|
|
|
top: 10.0, left: 15.0, right: 15.0),
|
|
|
|
child: Text(TranslationBase.of(context).average, style: TextStyle(fontSize: 13.0, color: Colors.black))),
|
|
|
|
child: Text(
|
|
|
|
|
|
|
|
TranslationBase.of(context).average,
|
|
|
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
|
|
|
fontSize: 13.0,
|
|
|
|
|
|
|
|
color: Colors.black))),
|
|
|
|
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
margin: EdgeInsets.only(top: 10.0),
|
|
|
|
margin: EdgeInsets.only(top: 10.0),
|
|
|
|
child: SizedBox(
|
|
|
|
child: SizedBox(
|
|
|
|
width: getRatingWidth(
|
|
|
|
width: getRatingWidth(doctorDetailsList[3].patientNumber),
|
|
|
|
doctorDetailsList[3].patientNumber),
|
|
|
|
|
|
|
|
height: 6.0,
|
|
|
|
height: 6.0,
|
|
|
|
child: Container(
|
|
|
|
child: Container(
|
|
|
|
color: Color(0xffEB7227),
|
|
|
|
color: Color(0xffEB7227),
|
|
|
|
@ -456,19 +402,12 @@ class _AppointmentDetailsState extends State<AppointmentDetails>
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
width: 100.0,
|
|
|
|
width: 100.0,
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
margin: EdgeInsets.only(top: 10.0, left: 15.0, right: 15.0),
|
|
|
|
top: 10.0, left: 15.0, right: 15.0),
|
|
|
|
child: Text(TranslationBase.of(context).below_average, style: TextStyle(fontSize: 13.0, color: Colors.black))),
|
|
|
|
child: Text(
|
|
|
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
|
|
|
.below_average,
|
|
|
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
|
|
|
fontSize: 13.0,
|
|
|
|
|
|
|
|
color: Colors.black))),
|
|
|
|
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
margin: EdgeInsets.only(top: 10.0),
|
|
|
|
margin: EdgeInsets.only(top: 10.0),
|
|
|
|
child: SizedBox(
|
|
|
|
child: SizedBox(
|
|
|
|
width: getRatingWidth(
|
|
|
|
width: getRatingWidth(doctorDetailsList[4].patientNumber),
|
|
|
|
doctorDetailsList[4].patientNumber),
|
|
|
|
|
|
|
|
height: 6.0,
|
|
|
|
height: 6.0,
|
|
|
|
child: Container(
|
|
|
|
child: Container(
|
|
|
|
color: Color(0xffE20C0C),
|
|
|
|
color: Color(0xffE20C0C),
|
|
|
|
@ -478,9 +417,7 @@ class _AppointmentDetailsState extends State<AppointmentDetails>
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Container(
|
|
|
|
Container(margin: EdgeInsets.only(top: 40.0), child: Divider()),
|
|
|
|
margin: EdgeInsets.only(top: 40.0),
|
|
|
|
|
|
|
|
child: Divider()),
|
|
|
|
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
margin: EdgeInsets.only(top: 0.0),
|
|
|
|
margin: EdgeInsets.only(top: 0.0),
|
|
|
|
child: Align(
|
|
|
|
child: Align(
|
|
|
|
@ -502,9 +439,7 @@ class _AppointmentDetailsState extends State<AppointmentDetails>
|
|
|
|
onPressed: () {
|
|
|
|
onPressed: () {
|
|
|
|
Navigator.of(context).pop();
|
|
|
|
Navigator.of(context).pop();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
child: Text(
|
|
|
|
child: Text(TranslationBase.of(context).cancel, style: TextStyle(fontSize: 18.0)),
|
|
|
|
TranslationBase.of(context).cancel,
|
|
|
|
|
|
|
|
style: TextStyle(fontSize: 18.0)),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
@ -532,13 +467,7 @@ class _AppointmentDetailsState extends State<AppointmentDetails>
|
|
|
|
|
|
|
|
|
|
|
|
String getDate(String date) {
|
|
|
|
String getDate(String date) {
|
|
|
|
DateTime dateObj = DateUtil.convertStringToDate(date);
|
|
|
|
DateTime dateObj = DateUtil.convertStringToDate(date);
|
|
|
|
return DateUtil.getWeekDay(dateObj.weekday) +
|
|
|
|
return DateUtil.getWeekDay(dateObj.weekday) + ", " + dateObj.day.toString() + " " + DateUtil.getMonth(dateObj.month) + " " + dateObj.year.toString();
|
|
|
|
", " +
|
|
|
|
|
|
|
|
dateObj.day.toString() +
|
|
|
|
|
|
|
|
" " +
|
|
|
|
|
|
|
|
DateUtil.getMonth(dateObj.month) +
|
|
|
|
|
|
|
|
" " +
|
|
|
|
|
|
|
|
dateObj.year.toString();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
String getDoctorSpeciality(List<String> docSpecial) {
|
|
|
|
String getDoctorSpeciality(List<String> docSpecial) {
|
|
|
|
|