|
|
|
@ -2,14 +2,17 @@ import 'package:doctor_app_flutter/config/size_config.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/core/enum/viewstate.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/core/viewModel/auth_view_model.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/core/viewModel/patient-referral-viewmodel.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/icons_app/doctor_app_icons.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/models/patient/my_referral/PendingReferral.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/screens/base/base_view.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/util/date-utils.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/util/dr_app_toast_msg.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/util/helpers.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/util/translations_delegate_base.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/patients/patient-referral-item-widget.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/patients/profile/PatientProfileButton.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/patients/profile/profile-welcome-widget.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/patients/profile/profile_medical_info_widget_search.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/app_scaffold_widget.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/borderedButton.dart';
|
|
|
|
@ -42,17 +45,60 @@ class MyReferralDetailScreen extends StatelessWidget {
|
|
|
|
|
builder: (_, model, w) => AppScaffold(
|
|
|
|
|
baseViewModel: model,
|
|
|
|
|
appBarTitle: TranslationBase.of(context).referPatient,
|
|
|
|
|
isShowAppBar: false,
|
|
|
|
|
body: model.patientArrivalList != null &&
|
|
|
|
|
model.patientArrivalList.length > 0
|
|
|
|
|
? Column(
|
|
|
|
|
children: [
|
|
|
|
|
Container(
|
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
|
left: 0, right: 5, bottom: 5, top: 5),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
),
|
|
|
|
|
child: Container(
|
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
|
left: 10, right: 10, bottom: 10),
|
|
|
|
|
margin: EdgeInsets.only(top: 50),
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [
|
|
|
|
|
Container(
|
|
|
|
|
padding: EdgeInsets.only(left: 12.0),
|
|
|
|
|
child: Row(children: [
|
|
|
|
|
IconButton(
|
|
|
|
|
icon: Icon(Icons.arrow_back_ios),
|
|
|
|
|
color: Colors.black, //Colors.black,
|
|
|
|
|
onPressed: () => Navigator.pop(context),
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
(Helpers.capitalize(model.patientArrivalList[0].patientDetails.fullName)),
|
|
|
|
|
fontSize: SizeConfig.textMultiplier * 3,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
backGroundcolor: Colors.white,
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
),
|
|
|
|
|
model.patientArrivalList[0].patientDetails.gender == 1
|
|
|
|
|
? Icon(
|
|
|
|
|
DoctorApp.male_2,
|
|
|
|
|
color: Colors.blue,
|
|
|
|
|
)
|
|
|
|
|
: Icon(
|
|
|
|
|
DoctorApp.female_1,
|
|
|
|
|
color: Colors.pink,
|
|
|
|
|
),
|
|
|
|
|
]),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
|
child: Container(
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
ProfileWelcomeWidget(
|
|
|
|
|
/*ProfileWelcomeWidget(
|
|
|
|
|
AppText(
|
|
|
|
|
authProvider.selectedClinicName != null
|
|
|
|
|
? authProvider.selectedClinicName
|
|
|
|
@ -63,7 +109,7 @@ class MyReferralDetailScreen extends StatelessWidget {
|
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
|
),
|
|
|
|
|
height: 100,
|
|
|
|
|
),
|
|
|
|
|
),*/
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 16,
|
|
|
|
|
),
|
|
|
|
@ -91,45 +137,11 @@ class MyReferralDetailScreen extends StatelessWidget {
|
|
|
|
|
referredOn: pendingReferral.referredOn,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
child: GridView.count(
|
|
|
|
|
childAspectRatio: 1.8,
|
|
|
|
|
crossAxisSpacing: 8,
|
|
|
|
|
mainAxisSpacing: 10,
|
|
|
|
|
controller: new ScrollController(
|
|
|
|
|
keepScrollOffset: false),
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
padding: const EdgeInsets.all(4.0),
|
|
|
|
|
crossAxisCount: 2,
|
|
|
|
|
children: [
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: model.patientArrivalList[0],
|
|
|
|
|
route: MEDICAL_FILE,
|
|
|
|
|
nameLine1: TranslationBase.of(context)
|
|
|
|
|
.previewHealth,
|
|
|
|
|
nameLine2: TranslationBase.of(context)
|
|
|
|
|
.summaryReport,
|
|
|
|
|
icon: 'radiology-1.png'),
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: model.patientArrivalList[0],
|
|
|
|
|
route: LAB_ORDERS,
|
|
|
|
|
nameLine1:
|
|
|
|
|
TranslationBase.of(context).lab,
|
|
|
|
|
nameLine2:
|
|
|
|
|
TranslationBase.of(context).result,
|
|
|
|
|
icon: 'lab.png'),
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: model.patientArrivalList[0],
|
|
|
|
|
route:
|
|
|
|
|
VITAL_SIGN_DETAILS /*PATIENT_VITAL_SIGN*/,
|
|
|
|
|
nameLine1:
|
|
|
|
|
TranslationBase.of(context).vital,
|
|
|
|
|
nameLine2:
|
|
|
|
|
TranslationBase.of(context).signs,
|
|
|
|
|
icon: 'heartbeat.png'),
|
|
|
|
|
],
|
|
|
|
|
child: ProfileMedicalInfoWidgetSearch(
|
|
|
|
|
patient: model.patientArrivalList[0],
|
|
|
|
|
patientType: "7",
|
|
|
|
|
from: null,
|
|
|
|
|
to: null,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|