|
|
|
|
@ -12,7 +12,7 @@ import 'package:provider/provider.dart';
|
|
|
|
|
import 'package:url_launcher/url_launcher.dart';
|
|
|
|
|
|
|
|
|
|
import 'large_avatar.dart';
|
|
|
|
|
|
|
|
|
|
import 'package:flutter_svg/svg.dart';
|
|
|
|
|
class PatientProfileAppBar extends StatelessWidget with PreferredSizeWidget {
|
|
|
|
|
final PatiantInformtion? patient;
|
|
|
|
|
final PatientProfileAppBarModel? patientProfileAppBarModel;
|
|
|
|
|
@ -133,11 +133,10 @@ class PatientProfileAppBar extends StatelessWidget with PreferredSizeWidget {
|
|
|
|
|
child: Container(
|
|
|
|
|
width: SizeConfig.getTextMultiplierBasedOnWidth() * 20,
|
|
|
|
|
height: SizeConfig.getTextMultiplierBasedOnWidth() * 20,
|
|
|
|
|
child: Image.asset(
|
|
|
|
|
gender == 1
|
|
|
|
|
? 'assets/images/male_avatar.png'
|
|
|
|
|
: 'assets/images/female_avatar.png',
|
|
|
|
|
fit: BoxFit.cover,
|
|
|
|
|
child: SvgPicture.asset(
|
|
|
|
|
gender == 1?"assets/images/svgs/male avatar.svg":"assets/images/svgs/female avatar.svg",
|
|
|
|
|
width: 30,
|
|
|
|
|
height: 30,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
@ -362,9 +361,11 @@ class PatientProfileAppBar extends StatelessWidget with PreferredSizeWidget {
|
|
|
|
|
value: patientProfileAppBarModel!.branch ?? '',
|
|
|
|
|
),
|
|
|
|
|
if (patientProfileAppBarModel!.clinic != null)
|
|
|
|
|
HeaderRow(
|
|
|
|
|
label: 'Clinic: ',
|
|
|
|
|
value: patientProfileAppBarModel!.clinic ?? '',
|
|
|
|
|
Container(
|
|
|
|
|
child: HeaderRow(
|
|
|
|
|
label: 'Clinic: ',
|
|
|
|
|
value: patientProfileAppBarModel!.clinic ?? '',
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
if (patientProfileAppBarModel!.isMedicalFile! && patientProfileAppBarModel!.episode != null)
|
|
|
|
|
HeaderRow(
|
|
|
|
|
@ -412,10 +413,10 @@ class PatientProfileAppBar extends StatelessWidget with PreferredSizeWidget {
|
|
|
|
|
: patientProfileAppBarModel!.patient!.admissionDate != null
|
|
|
|
|
? patientProfileAppBarModel!.isFromLabResult!
|
|
|
|
|
? 210
|
|
|
|
|
: 200
|
|
|
|
|
: patientProfileAppBarModel!.isMedicalFile!?650:200
|
|
|
|
|
: patientProfileAppBarModel!.isDischargedPatient!
|
|
|
|
|
? 240
|
|
|
|
|
: 130)
|
|
|
|
|
: 190)
|
|
|
|
|
: patientProfileAppBarModel!.height!
|
|
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|