|
|
|
|
@ -49,7 +49,6 @@ class _DoctorReplyWidgetState extends State<DoctorReplyWidget> {
|
|
|
|
|
color: Colors.black),
|
|
|
|
|
children: <TextSpan>[
|
|
|
|
|
new TextSpan(
|
|
|
|
|
//TODO Elham* add translation
|
|
|
|
|
text: widget.reply.status == 2
|
|
|
|
|
? TranslationBase.of(context).active
|
|
|
|
|
: widget.reply.status == 1
|
|
|
|
|
@ -190,47 +189,6 @@ class _DoctorReplyWidgetState extends State<DoctorReplyWidget> {
|
|
|
|
|
value:
|
|
|
|
|
"${AppDateUtils.getAgeByBirthday(widget.reply.dateofBirth, context)}",
|
|
|
|
|
),
|
|
|
|
|
// CustomRow(
|
|
|
|
|
// label:TranslationBase.of(context).requestType+
|
|
|
|
|
// ": ",
|
|
|
|
|
// value: "${widget.reply.requestTypeDescription}",
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
|
|
Container(
|
|
|
|
|
width: MediaQuery.of(context).size.width * 0.5,
|
|
|
|
|
child: RichText(
|
|
|
|
|
maxLines: 3,
|
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
|
text: new TextSpan(
|
|
|
|
|
style: new TextStyle(
|
|
|
|
|
fontSize:
|
|
|
|
|
1.3 * SizeConfig.textMultiplier,
|
|
|
|
|
color: Color(0xFF575757)),
|
|
|
|
|
children: <TextSpan>[
|
|
|
|
|
new TextSpan(
|
|
|
|
|
text: TranslationBase.of(context)
|
|
|
|
|
.requestType +
|
|
|
|
|
": ",
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: SizeConfig
|
|
|
|
|
.getTextMultiplierBasedOnWidth() *
|
|
|
|
|
2.8,
|
|
|
|
|
color: Color(0xFF575757),
|
|
|
|
|
//TranslationBase.of(context).doctorResponse + " : ",
|
|
|
|
|
)),
|
|
|
|
|
new TextSpan(
|
|
|
|
|
text:
|
|
|
|
|
"${widget.reply.requestTypeDescription}",
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
fontSize: SizeConfig.getTextMultiplierBasedOnWidth() * 3,
|
|
|
|
|
color: Color(0xFF2E303A),
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
)),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
CustomRow(
|
|
|
|
|
width: MediaQuery.of(context).size.width * .3,
|
|
|
|
|
label: TranslationBase.of(context).infoStatus +
|
|
|
|
|
@ -269,17 +227,29 @@ class _DoctorReplyWidgetState extends State<DoctorReplyWidget> {
|
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
|
text: new TextSpan(
|
|
|
|
|
style: new TextStyle(
|
|
|
|
|
fontSize: 1.3 * SizeConfig.textMultiplier,
|
|
|
|
|
fontSize:
|
|
|
|
|
1.3 * SizeConfig.textMultiplier,
|
|
|
|
|
color: Color(0xFF575757)),
|
|
|
|
|
children: <TextSpan>[
|
|
|
|
|
new TextSpan(
|
|
|
|
|
text:
|
|
|
|
|
"Patient Question: ", //TranslationBase.of(context).doctorResponse + " : ",
|
|
|
|
|
),
|
|
|
|
|
text: TranslationBase.of(context)
|
|
|
|
|
.requestType +
|
|
|
|
|
": ",
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: SizeConfig
|
|
|
|
|
.getTextMultiplierBasedOnWidth() *
|
|
|
|
|
2.8,
|
|
|
|
|
color: Color(0xFF575757),
|
|
|
|
|
//TranslationBase.of(context).doctorResponse + " : ",
|
|
|
|
|
)),
|
|
|
|
|
new TextSpan(
|
|
|
|
|
text: widget.reply?.remarks?.trim() ?? '',
|
|
|
|
|
text:
|
|
|
|
|
"${widget.reply.requestTypeDescription}",
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
fontSize: SizeConfig.getTextMultiplierBasedOnWidth() * 3,
|
|
|
|
|
color: Color(0xFF2E303A),
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
)),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
|