fix app bar issues

merge-requests/747/head
Mohammad Aljammal 5 years ago
parent 4d3371e882
commit 7f6128b458

@ -14,6 +14,7 @@ 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/profile/PatientProfileButton.dart';
import 'package:doctor_app_flutter/widgets/patients/profile/patient-profile-app-bar.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/buttons/app_buttons_widget.dart';
@ -204,19 +205,20 @@ class _EndCallScreenState extends State<EndCallScreen> {
.scaffoldBackgroundColor,
isShowAppBar: true,
appBar: PatientProfileAppBar(
patient,
patientProfileAppBarModel :PatientProfileAppBarModel(patient: patient,isInpatient: isInpatient,
isDischargedPatient: isDischargedPatient,
height: (patient.patientStatusType != null &&
patient.patientStatusType == 43)
? 210
: isDischargedPatient
? 240
: 0,
),
onPressed: (){
Navigator.pop(context);
},
isInpatient: isInpatient,
height: (patient.patientStatusType != null &&
patient.patientStatusType == 43)
? 210
: isDischargedPatient
? 240
: 0,
isDischargedPatient: isDischargedPatient),
),
body: Container(
height: !isSearchAndOut
? isDischargedPatient

@ -39,7 +39,7 @@ class AppScaffold extends StatelessWidget {
this.isHomeIcon = true,
this.subtitle,
this.patientProfileAppBarModel,
this.drawer, this.extendBody = false, this.bottomNavigationBar});
this.drawer, this.extendBody = false, this.bottomNavigationBar, this.appBar});
@override
Widget build(BuildContext context) {

Loading…
Cancel
Save