we fix an issues in radiology_details_page and special_lab_result_details_page

merge-requests/934/head
RoaaGhali98 4 years ago
parent 04369427c6
commit a812b17e8c

@ -9,6 +9,8 @@ import 'package:doctor_app_flutter/widgets/shared/errors/error_message.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_html/flutter_html.dart'; import 'package:flutter_html/flutter_html.dart';
import '../../../../models/patient/profile/patient_profile_app_bar_model.dart';
class SpecialLabResultDetailsPage extends StatelessWidget { class SpecialLabResultDetailsPage extends StatelessWidget {
final String resultData; final String resultData;
final PatiantInformtion patient; final PatiantInformtion patient;
@ -22,9 +24,8 @@ class SpecialLabResultDetailsPage extends StatelessWidget {
baseViewModel: model, baseViewModel: model,
isShowAppBar: true, isShowAppBar: true,
backgroundColor: Theme.of(context).scaffoldBackgroundColor, backgroundColor: Theme.of(context).scaffoldBackgroundColor,
appBar: PatientProfileAppBar( patientProfileAppBarModel: PatientProfileAppBarModel(
patient, patient:patient),
),
body: Container( body: Container(
child: SingleChildScrollView( child: SingleChildScrollView(
child: Column( child: Column(

@ -13,6 +13,7 @@ import 'package:flutter/material.dart';
import 'package:url_launcher/url_launcher.dart'; import 'package:url_launcher/url_launcher.dart';
import '../../../../locator.dart'; import '../../../../locator.dart';
import '../../../../models/patient/profile/patient_profile_app_bar_model.dart';
class RadiologyDetailsPage extends StatelessWidget { class RadiologyDetailsPage extends StatelessWidget {
final FinalRadiology finalRadiology; final FinalRadiology finalRadiology;
@ -34,16 +35,38 @@ class RadiologyDetailsPage extends StatelessWidget {
lineItem: finalRadiology.invoiceLineItemNo, lineItem: finalRadiology.invoiceLineItemNo,
invoiceNo: finalRadiology.invoiceNo), invoiceNo: finalRadiology.invoiceNo),
builder: (_, model, widget) => AppScaffold( builder: (_, model, widget) => AppScaffold(
appBar: PatientProfileAppBar(
patient, patientProfileAppBarModel:PatientProfileAppBarModel(
appointmentDate: finalRadiology.orderDate,
doctorName: finalRadiology.doctorName, patient:patient,
clinic: finalRadiology.clinicDescription, appointmentDate: finalRadiology.orderDate,
branch: finalRadiology.projectName, doctorName: finalRadiology.doctorName,
profileUrl: finalRadiology.doctorImageURL, clinic: finalRadiology.clinicDescription,
invoiceNO: finalRadiology.invoiceNo.toString(), branch: finalRadiology.projectName,
isAppointmentHeader: true, profileUrl: finalRadiology.doctorImageURL,
invoiceNO: finalRadiology.invoiceNo.toString(),
isAppointmentHeader: false,
), ),
// appBar: PatientProfileAppBar(
// patient,
// appointmentDate: finalRadiology.orderDate,
// doctorName: finalRadiology.doctorName,
// clinic: finalRadiology.clinicDescription,
// branch: finalRadiology.projectName,
// profileUrl: finalRadiology.doctorImageURL,
// invoiceNO: finalRadiology.invoiceNo.toString(),
// isAppointmentHeader: false,
// ),
// appBar: PatientProfileAppBar(
// patient,
// appointmentDate: finalRadiology.orderDate,
// doctorName: finalRadiology.doctorName,
// clinic: finalRadiology.clinicDescription,
// branch: finalRadiology.projectName,
// profileUrl: finalRadiology.doctorImageURL,
// invoiceNO: finalRadiology.invoiceNo.toString(),
// isAppointmentHeader: true,
// ),
isShowAppBar: true, isShowAppBar: true,
baseViewModel: model, baseViewModel: model,
body: SingleChildScrollView( body: SingleChildScrollView(

Loading…
Cancel
Save