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.
40 lines
1.2 KiB
Dart
40 lines
1.2 KiB
Dart
import 'package:doctor_app_flutter/models/patient/patiant_info_model.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:hexcolor/hexcolor.dart';
|
|
|
|
import '../../../config/size_config.dart';
|
|
import '../../shared/profile_image_widget.dart';
|
|
|
|
/*
|
|
*@author: Elham Rababah
|
|
*@Date:21/4/2020
|
|
*@param:
|
|
*@return:
|
|
*@desc: Profile Header Widget class
|
|
*/
|
|
class ProfileHeaderWidget extends StatelessWidget {
|
|
ProfileHeaderWidget({
|
|
Key key,
|
|
this.patient
|
|
}) : super(key: key);
|
|
|
|
PatiantInformtion patient;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
// PatientsProvider patientsProv = Provider.of<PatientsProvider>(context);
|
|
// patient = patientsProv.getSelectedPatient();
|
|
return Container(
|
|
height: SizeConfig.heightMultiplier * 30,
|
|
child: ProfileImageWidget(
|
|
url:
|
|
"http://images4.fanpop.com/image/photos/16200000/David-Schwimmer-Ross-Geller-ross-geller-16258927-629-779.jpg",
|
|
name: patient.firstName + ' ' + patient.lastName,
|
|
des: patient.patientId.toString(),
|
|
height: SizeConfig.heightMultiplier * 17,
|
|
width: SizeConfig.heightMultiplier * 17,
|
|
color: Hexcolor('#58434F')),
|
|
);
|
|
}
|
|
}
|