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.
78 lines
2.5 KiB
Dart
78 lines
2.5 KiB
Dart
import 'package:doctor_app_flutter/config/size_config.dart';
|
|
import 'package:doctor_app_flutter/models/patient/patiant_info_model.dart';
|
|
import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart';
|
|
import 'package:doctor_app_flutter/widgets/shared/profile_image_widget.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
import 'package:hexcolor/hexcolor.dart';
|
|
|
|
import './Profile_general_info_Widget.dart';
|
|
import './profile_header_widget.dart';
|
|
import './profile_medical_info_widget.dart';
|
|
import './profile_status_info_widget.dart';
|
|
|
|
/*
|
|
*@author: Elham Rababah
|
|
*@Date:22/4/2020
|
|
*@param:
|
|
*@return:PatientProfileWidget
|
|
*@desc: Patient Profile Widget
|
|
*/
|
|
class PatientProfileWidget extends StatelessWidget {
|
|
PatiantInformtion patient;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
final routeArgs = ModalRoute.of(context).settings.arguments as Map;
|
|
patient = routeArgs['patient'];
|
|
// return ListView(padding: EdgeInsets.zero, children: <Widget>[
|
|
// ProfileHeaderWidget(patient: patient),
|
|
// ProfileGeneralInfoWidget(patient: patient),
|
|
// ProfileMedicalInfoWidget(patient: patient),
|
|
// ProfileStatusInfoWidget()
|
|
// ]);
|
|
|
|
return Container(
|
|
child: Column(children: <Widget>[
|
|
Expanded(
|
|
flex: 1,
|
|
child:
|
|
Row(mainAxisAlignment: MainAxisAlignment.center, children: <Widget>[
|
|
Column(children: <Widget>[
|
|
Container(
|
|
padding: EdgeInsets.only(top: 20),
|
|
child: ProfileImageWidget(
|
|
url:
|
|
"https://hmgwebservices.com/Images/MobileImages/DUBAI/unkown_female.png",
|
|
name: patient.firstName + ' ' + patient.lastName,
|
|
fontsize: 24.0,
|
|
color: Colors.black,
|
|
),
|
|
),
|
|
Container(
|
|
child: Column(
|
|
children: <Widget>[
|
|
AppText(
|
|
'File No: ' + patient.patientId.toString(),
|
|
fontWeight: FontWeight.normal,
|
|
fontSize: 16,
|
|
),
|
|
AppText(
|
|
patient.genderDescription.toString() + ', ' + patient.age,
|
|
fontWeight: FontWeight.normal,
|
|
fontSize: 16,
|
|
)
|
|
],
|
|
),
|
|
)
|
|
]),
|
|
]),
|
|
),
|
|
Expanded(
|
|
flex: 2,
|
|
child: ProfileMedicalInfoWidget(patient: patient),
|
|
)
|
|
]));
|
|
}
|
|
}
|