|
|
|
|
@ -42,24 +42,26 @@ class _MyReferralPatientWidgetState extends State<MyReferralPatientWidget> {
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
AppText(
|
|
|
|
|
'${widget.myReferralPatientModel.firstName} ${widget.myReferralPatientModel.lastName}',
|
|
|
|
|
fontSize: 2.5 * SizeConfig.textMultiplier,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
),
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
setState(() {
|
|
|
|
|
_showDetails = !_showDetails;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
child: Icon(_showDetails
|
|
|
|
|
? Icons.keyboard_arrow_up
|
|
|
|
|
: Icons.keyboard_arrow_down)),
|
|
|
|
|
],
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
setState(() {
|
|
|
|
|
_showDetails = !_showDetails;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
child: Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
AppText(
|
|
|
|
|
'${widget.myReferralPatientModel.firstName} ${widget.myReferralPatientModel.lastName}',
|
|
|
|
|
fontSize: 2.5 * SizeConfig.textMultiplier,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
),
|
|
|
|
|
Icon(_showDetails
|
|
|
|
|
? Icons.keyboard_arrow_up
|
|
|
|
|
: Icons.keyboard_arrow_down),
|
|
|
|
|
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
!_showDetails
|
|
|
|
|
? Container()
|
|
|
|
|
@ -87,6 +89,7 @@ class _MyReferralPatientWidgetState extends State<MyReferralPatientWidget> {
|
|
|
|
|
1.7 * SizeConfig.textMultiplier,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 5,),
|
|
|
|
|
AppText(
|
|
|
|
|
'${widget.myReferralPatientModel.referringDoctor}',
|
|
|
|
|
fontSize:
|
|
|
|
|
@ -108,6 +111,7 @@ class _MyReferralPatientWidgetState extends State<MyReferralPatientWidget> {
|
|
|
|
|
1.7 * SizeConfig.textMultiplier,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 5,),
|
|
|
|
|
AppText(
|
|
|
|
|
widget.myReferralPatientModel
|
|
|
|
|
.referringClinicDescription,
|
|
|
|
|
@ -135,6 +139,7 @@ class _MyReferralPatientWidgetState extends State<MyReferralPatientWidget> {
|
|
|
|
|
1.7 * SizeConfig.textMultiplier,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 5,),
|
|
|
|
|
AppText(
|
|
|
|
|
'${widget.myReferralPatientModel.referringClinicDescription}',
|
|
|
|
|
fontSize:
|
|
|
|
|
@ -157,6 +162,7 @@ class _MyReferralPatientWidgetState extends State<MyReferralPatientWidget> {
|
|
|
|
|
1.7 * SizeConfig.textMultiplier,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 5,),
|
|
|
|
|
AppText(
|
|
|
|
|
widget.myReferralPatientModel
|
|
|
|
|
.frequencyDescription,
|
|
|
|
|
@ -184,6 +190,7 @@ class _MyReferralPatientWidgetState extends State<MyReferralPatientWidget> {
|
|
|
|
|
1.7 * SizeConfig.textMultiplier,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 5,),
|
|
|
|
|
AppText(
|
|
|
|
|
'${widget.myReferralPatientModel.priorityDescription}',
|
|
|
|
|
fontSize:
|
|
|
|
|
@ -206,6 +213,7 @@ class _MyReferralPatientWidgetState extends State<MyReferralPatientWidget> {
|
|
|
|
|
1.7 * SizeConfig.textMultiplier,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 5,),
|
|
|
|
|
AppText(
|
|
|
|
|
Helpers.getDateFormatted(widget
|
|
|
|
|
.myReferralPatientModel
|
|
|
|
|
|