You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
93 lines
3.1 KiB
Dart
93 lines
3.1 KiB
Dart
import 'package:doctor_app_flutter/icons_app/doctor_app_icons.dart';
|
|
import 'package:doctor_app_flutter/models/patient/patiant_info_model.dart';
|
|
import 'package:doctor_app_flutter/util/translations_delegate_base.dart';
|
|
import 'package:doctor_app_flutter/widgets/patients/profile/patient_profile_widget.dart';
|
|
import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
class PatientPageHeaderWidget extends StatelessWidget {
|
|
|
|
final PatiantInformtion patient;
|
|
|
|
PatientPageHeaderWidget(this.patient);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Container(
|
|
child: Column(
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
children: [
|
|
Padding(
|
|
padding: const EdgeInsets.all(8.0),
|
|
child: Row(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
mainAxisSize: MainAxisSize.min,
|
|
children: <Widget>[
|
|
AvatarWidget(
|
|
Icon(
|
|
patient.genderDescription == "Male"
|
|
? DoctorApp.male
|
|
: DoctorApp.female_icon,
|
|
size: 70,
|
|
color: Colors.white,
|
|
),
|
|
),
|
|
SizedBox(
|
|
width: 20,
|
|
),
|
|
Expanded(
|
|
child: Column(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
children: [
|
|
SizedBox(
|
|
height: 5,
|
|
),
|
|
AppText(
|
|
patient.firstName + ' ' + patient.lastName,
|
|
color: Colors.black,
|
|
fontWeight: FontWeight.bold,
|
|
),
|
|
Row(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: [
|
|
AppText(
|
|
TranslationBase.of(context).age,
|
|
color: Colors.black,
|
|
fontWeight: FontWeight.bold,
|
|
),
|
|
SizedBox(
|
|
width: 20,
|
|
),
|
|
AppText(
|
|
patient.age.toString(),
|
|
color: Colors.black,
|
|
fontWeight: FontWeight.normal,
|
|
),
|
|
],
|
|
),
|
|
AppText(
|
|
"ALLERGIC TO: FOOD, ASPIRIN, EGG WHITE",
|
|
color: Color(0xFFB9382C),
|
|
fontWeight: FontWeight.bold,
|
|
),
|
|
],
|
|
),
|
|
)
|
|
],
|
|
),
|
|
),
|
|
Container(
|
|
width: double.infinity,
|
|
height: 1,
|
|
color: Color(0xffCCCCCC),
|
|
),
|
|
SizedBox(
|
|
width: 20,
|
|
),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|