hot fix profile_medical_info_widget_search

merge-requests/357/head
Elham Rababah 5 years ago
parent 8a332b4d83
commit c10a0cf88e

@ -1,20 +1,11 @@
import 'package:doctor_app_flutter/config/config.dart';
import 'package:doctor_app_flutter/core/enum/viewstate.dart';
import 'package:doctor_app_flutter/core/viewModel/SOAP_view_model.dart'; import 'package:doctor_app_flutter/core/viewModel/SOAP_view_model.dart';
import 'package:doctor_app_flutter/models/SOAP/PostEpisodeReqModel.dart';
import 'package:doctor_app_flutter/models/patient/patiant_info_model.dart'; import 'package:doctor_app_flutter/models/patient/patiant_info_model.dart';
import 'package:doctor_app_flutter/routes.dart'; import 'package:doctor_app_flutter/routes.dart';
import 'package:doctor_app_flutter/screens/base/base_view.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/translations_delegate_base.dart'; import 'package:doctor_app_flutter/util/translations_delegate_base.dart';
import 'package:doctor_app_flutter/widgets/patients/profile/PatientProfileButton.dart'; import 'package:doctor_app_flutter/widgets/patients/profile/PatientProfileButton.dart';
import 'package:doctor_app_flutter/widgets/shared/dr_app_circular_progress_Indeicator.dart';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:hexcolor/hexcolor.dart';
import '../../../config/size_config.dart';
import '../../shared/app_texts_widget.dart';
class ProfileMedicalInfoWidgetSearch extends StatelessWidget { class ProfileMedicalInfoWidgetSearch extends StatelessWidget {
String from; String from;
@ -35,15 +26,14 @@ class ProfileMedicalInfoWidgetSearch extends StatelessWidget {
crossAxisCount: 2, crossAxisCount: 2,
childAspectRatio: 1.5, childAspectRatio: 1.5,
children: [ children: [
PatientProfileButton( PatientProfileButton(
key: key, key: key,
patient: patient, patient: patient,
from: from, route: RADIOLOGY,
to: to, nameLine1: TranslationBase.of(context).radiology,
nameLine1: TranslationBase.of(context).vital, nameLine2: TranslationBase.of(context).service,
nameLine2: TranslationBase.of(context).signs, icon: 'radiology-1.png'),
route: VITAL_SIGN_DETAILS,
icon: 'heartbeat.png'),
PatientProfileButton( PatientProfileButton(
key: key, key: key,
patient: patient, patient: patient,
@ -54,32 +44,36 @@ class ProfileMedicalInfoWidgetSearch extends StatelessWidget {
PatientProfileButton( PatientProfileButton(
key: key, key: key,
patient: patient, patient: patient,
route: PATIENT_ADMISSION_REQUEST, from: from,
nameLine1: TranslationBase.of(context).admission, to: to,
nameLine2: TranslationBase.of(context).request, nameLine1: TranslationBase.of(context).vital,
nameLine2: TranslationBase.of(context).signs,
route: VITAL_SIGN_DETAILS,
icon: 'heartbeat.png'), icon: 'heartbeat.png'),
(int.parse(patientType) == 7 || int.parse(patientType) == 6)
? PatientProfileButton( // PatientProfileButton(
key: key, // key: key,
patient: patient, // patient: patient,
route: ORDER_PRESCRIPTION, // route: PATIENT_ADMISSION_REQUEST,
nameLine1: TranslationBase.of(context).orders, // nameLine1: TranslationBase.of(context).admission,
nameLine2: TranslationBase.of(context).prescription, // nameLine2: TranslationBase.of(context).request,
icon: 'lab.png') // icon: 'heartbeat.png'),
: PatientProfileButton( // (int.parse(patientType) == 7 || int.parse(patientType) == 6)
key: key, // ? PatientProfileButton(
patient: patient, // key: key,
route: ORDER_PRESCRIPTION_HISTORY, // patient: patient,
nameLine1: TranslationBase.of(context).orders, // route: ORDER_PRESCRIPTION,
nameLine2: TranslationBase.of(context).prescription, // nameLine1: TranslationBase.of(context).orders,
icon: 'lab.png'), // nameLine2: TranslationBase.of(context).prescription,
// icon: 'lab.png')
// :
PatientProfileButton( PatientProfileButton(
key: key, key: key,
patient: patient, patient: patient,
route: ADD_SICKLEAVE, route: ORDER_PRESCRIPTION_HISTORY,
nameLine1: TranslationBase.of(context).patientSick, nameLine1: TranslationBase.of(context).orders,
nameLine2: TranslationBase.of(context).leave, nameLine2: TranslationBase.of(context).prescription,
icon: 'sick_leaves_icons.png'), icon: 'lab.png'),
PatientProfileButton( PatientProfileButton(
key: key, key: key,
patient: patient, patient: patient,

Loading…
Cancel
Save