|
|
|
|
@ -1,10 +1,12 @@
|
|
|
|
|
import 'package:diplomaticquarterapp/core/model/prescriptions/prescription_report.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/core/viewModels/project_view_model.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/models/header_model.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/MyAppointments/widgets/reminder_dialog.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/MyAppointments/widgets/reminder_dialog_prescription.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/medical/prescriptions/pharmacy_for_prescriptions_page.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/widgets/data_display/text.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/widgets/new_design/doctor_header.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/widgets/transitions/fade_page.dart';
|
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
|
@ -20,11 +22,34 @@ class PrescriptionDetailsPage extends StatelessWidget {
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
return AppScaffold(
|
|
|
|
|
isShowAppBar: true,
|
|
|
|
|
showNewAppBar: true,
|
|
|
|
|
backgroundColor: Color(0xffF8F8F8),
|
|
|
|
|
showNewAppBarTitle: true,
|
|
|
|
|
appBarTitle: TranslationBase.of(context).prescriptions,
|
|
|
|
|
body: SingleChildScrollView(
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
// DoctorHeader(
|
|
|
|
|
// headerModel: HeaderModel(
|
|
|
|
|
// prescriptionReport.doctorName,
|
|
|
|
|
// prescriptionReport.doctorImageURL,
|
|
|
|
|
// prescriptionReport.speciality,
|
|
|
|
|
// "",
|
|
|
|
|
// prescriptions.name,
|
|
|
|
|
// DateUtil.convertStringToDate(prescriptions.appointmentDate),
|
|
|
|
|
// DateUtil.formatDateToTime(DateUtil.convertStringToDate(prescriptions.appointmentDate)),
|
|
|
|
|
// prescriptions.nationalityFlagURL,
|
|
|
|
|
// prescriptions.doctorRate,
|
|
|
|
|
// prescriptions.actualDoctorRate,
|
|
|
|
|
// prescriptions.noOfPatientsRate,
|
|
|
|
|
// model.user.emailAddress,
|
|
|
|
|
// ),
|
|
|
|
|
// isNeedToShowButton: false,
|
|
|
|
|
// onTap: () {
|
|
|
|
|
// // showConfirmMessage(context, model);
|
|
|
|
|
// },
|
|
|
|
|
// ),
|
|
|
|
|
Container(
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
margin: EdgeInsets.only(top: 10, left: 10, right: 10),
|
|
|
|
|
@ -51,9 +76,7 @@ class PrescriptionDetailsPage extends StatelessWidget {
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding: const EdgeInsets.all(8.0),
|
|
|
|
|
child: Center(
|
|
|
|
|
child: Texts(prescriptionReport.itemDescription.isNotEmpty
|
|
|
|
|
? prescriptionReport.itemDescription
|
|
|
|
|
: prescriptionReport.itemDescriptionN ?? ''),
|
|
|
|
|
child: Texts(prescriptionReport.itemDescription.isNotEmpty ? prescriptionReport.itemDescription : prescriptionReport.itemDescriptionN ?? ''),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
@ -152,26 +175,10 @@ class PrescriptionDetailsPage extends StatelessWidget {
|
|
|
|
|
),
|
|
|
|
|
TableRow(
|
|
|
|
|
children: [
|
|
|
|
|
Container(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
height: 50,
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
child: Center(child: Text(prescriptionReport.routeN ?? ''))),
|
|
|
|
|
Container(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
height: 50,
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
child: Center(child: Text(prescriptionReport.frequencyN ?? ''))),
|
|
|
|
|
Container(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
height: 50,
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
child: Center(child: Text('${prescriptionReport.doseDailyQuantity}'))),
|
|
|
|
|
Container(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
height: 50,
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
child: Center(child: Text('${prescriptionReport.days}')))
|
|
|
|
|
Container(color: Colors.white, height: 50, width: double.infinity, child: Center(child: Text(prescriptionReport.routeN ?? ''))),
|
|
|
|
|
Container(color: Colors.white, height: 50, width: double.infinity, child: Center(child: Text(prescriptionReport.frequencyN ?? ''))),
|
|
|
|
|
Container(color: Colors.white, height: 50, width: double.infinity, child: Center(child: Text('${prescriptionReport.doseDailyQuantity}'))),
|
|
|
|
|
Container(color: Colors.white, height: 50, width: double.infinity, child: Center(child: Text('${prescriptionReport.days}')))
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
@ -227,8 +234,7 @@ class PrescriptionDetailsPage extends StatelessWidget {
|
|
|
|
|
child: PrescriptionReminderDialog(
|
|
|
|
|
eventId: prescriptionReport.itemID.toString(),
|
|
|
|
|
title: "${prescriptionReport.itemDescriptionN} Prescription Reminder",
|
|
|
|
|
description:
|
|
|
|
|
"${prescriptionReport.itemDescriptionN} ${prescriptionReport.frequencyN} ${prescriptionReport.routeN} ",
|
|
|
|
|
description: "${prescriptionReport.itemDescriptionN} ${prescriptionReport.frequencyN} ${prescriptionReport.routeN} ",
|
|
|
|
|
startDate: startDate,
|
|
|
|
|
endDate: endDate,
|
|
|
|
|
location: prescriptionReport.remarks,
|
|
|
|
|
@ -250,31 +256,22 @@ class PrescriptionDetailsPage extends StatelessWidget {
|
|
|
|
|
// height: 100.0,
|
|
|
|
|
margin: EdgeInsets.all(7.0),
|
|
|
|
|
padding: EdgeInsets.only(bottom: 4.0),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
boxShadow: [BoxShadow(color: Colors.grey[400], blurRadius: 2.0, spreadRadius: 0.0)],
|
|
|
|
|
borderRadius: BorderRadius.circular(10),
|
|
|
|
|
color: Colors.white),
|
|
|
|
|
decoration: BoxDecoration(boxShadow: [BoxShadow(color: Colors.grey[400], blurRadius: 2.0, spreadRadius: 0.0)], borderRadius: BorderRadius.circular(10), color: Colors.white),
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
mainAxisSize: MainAxisSize.max,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Container(
|
|
|
|
|
margin: EdgeInsets.fromLTRB(5.0, 5.0, 5.0, 0.0),
|
|
|
|
|
child: Text("add",
|
|
|
|
|
overflow: TextOverflow.clip,
|
|
|
|
|
style: TextStyle(color: new Color(0xffB8382C), letterSpacing: 1.0, fontSize: 18.0)),
|
|
|
|
|
child: Text("add", overflow: TextOverflow.clip, style: TextStyle(color: new Color(0xffB8382C), letterSpacing: 1.0, fontSize: 18.0)),
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
margin: EdgeInsets.fromLTRB(5.0, 0.0, 5.0, 0.0),
|
|
|
|
|
child: Text("reminder",
|
|
|
|
|
overflow: TextOverflow.clip,
|
|
|
|
|
style: TextStyle(color: Colors.black, letterSpacing: 1.0, fontSize: 15.0)),
|
|
|
|
|
child: Text("reminder", overflow: TextOverflow.clip, style: TextStyle(color: Colors.black, letterSpacing: 1.0, fontSize: 15.0)),
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
alignment: projectViewModel.isArabic ? Alignment.bottomLeft : Alignment.bottomRight,
|
|
|
|
|
margin: projectViewModel.isArabic
|
|
|
|
|
? EdgeInsets.fromLTRB(10.0, 7.0, 0.0, 8.0)
|
|
|
|
|
: EdgeInsets.fromLTRB(0.0, 7.0, 10.0, 8.0),
|
|
|
|
|
margin: projectViewModel.isArabic ? EdgeInsets.fromLTRB(10.0, 7.0, 0.0, 8.0) : EdgeInsets.fromLTRB(0.0, 7.0, 10.0, 8.0),
|
|
|
|
|
child: Image.asset("assets/images/new-design/reminder_icon.png", width: 45.0, height: 45.0),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
|