|
|
|
|
@ -148,7 +148,7 @@ class DoctorReplayChat extends StatelessWidget {
|
|
|
|
|
child: AppText(
|
|
|
|
|
reply.patientName
|
|
|
|
|
.toString(),
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
fontSize: SizeConfig.getTextMultiplierBasedOnWidth() *3,
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
@ -170,7 +170,7 @@ class DoctorReplayChat extends StatelessWidget {
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.end,
|
|
|
|
|
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
@ -178,11 +178,11 @@ class DoctorReplayChat extends StatelessWidget {
|
|
|
|
|
fontWeight: FontWeight
|
|
|
|
|
.w500,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
fontSize: SizeConfig.getTextMultiplierBasedOnWidth() *2.8,
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
reply.createdOn !=null?AppDateUtils.getHour(AppDateUtils.getDateTimeFromServerFormat(reply.createdOn)):AppDateUtils.getHour(DateTime.now()),
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
fontSize: SizeConfig.getTextMultiplierBasedOnWidth() *2.8,
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
// fontSize: 18
|
|
|
|
|
@ -223,6 +223,7 @@ class DoctorReplayChat extends StatelessWidget {
|
|
|
|
|
SizedBox(height: 30,),
|
|
|
|
|
|
|
|
|
|
SizedBox(height: 30,),
|
|
|
|
|
if(reply.doctorResponse != null && reply.doctorResponse.isNotEmpty)
|
|
|
|
|
Align(
|
|
|
|
|
alignment: Alignment.centerRight,
|
|
|
|
|
child: Container(
|
|
|
|
|
@ -267,7 +268,7 @@ class DoctorReplayChat extends StatelessWidget {
|
|
|
|
|
width: MediaQuery.of(context).size.width * 0.35,
|
|
|
|
|
child: AppText(
|
|
|
|
|
previousModel.doctorProfile.doctorName,
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
fontSize: SizeConfig.getTextMultiplierBasedOnWidth() *3,
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
color: Color(0xFF2B353E),
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
@ -278,18 +279,18 @@ class DoctorReplayChat extends StatelessWidget {
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.end,
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
reply.createdOn !=null?AppDateUtils.getDayMonthYearDateFormatted(AppDateUtils.getDateTimeFromServerFormat(reply.createdOn)):AppDateUtils.getDayMonthYearDateFormatted(DateTime.now()),
|
|
|
|
|
fontWeight: FontWeight
|
|
|
|
|
.w500,
|
|
|
|
|
color: Color(0xFF2B353E),
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
fontSize: SizeConfig.getTextMultiplierBasedOnWidth() *2.8,
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
reply.createdOn !=null?AppDateUtils.getHour(AppDateUtils.getDateTimeFromServerFormat(reply.createdOn)):AppDateUtils.getHour(DateTime.now()),
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
fontSize: SizeConfig.getTextMultiplierBasedOnWidth() *2.8,
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
color: Color(0xFF2B353E),
|
|
|
|
|
// fontSize: 18
|
|
|
|
|
@ -358,16 +359,23 @@ class DoctorReplayChat extends StatelessWidget {
|
|
|
|
|
suffixIcon: FontAwesomeIcons.arrowRight,
|
|
|
|
|
suffixIconColor: Colors.green,
|
|
|
|
|
onSuffixTap: ()async {
|
|
|
|
|
GifLoaderDialogUtils.showMyDialog(context);
|
|
|
|
|
await previousModel.createDoctorResponse(msgController.text, reply);
|
|
|
|
|
if(previousModel.state == ViewState.ErrorLocal) {
|
|
|
|
|
Helpers.showErrorToast(previousModel.error);
|
|
|
|
|
|
|
|
|
|
if(msgController.text.isEmpty){
|
|
|
|
|
Helpers.showErrorToast("Please Add Doctor Reply");
|
|
|
|
|
return;
|
|
|
|
|
} else {
|
|
|
|
|
DrAppToastMsg.showSuccesToast("Thank you for your replay ");
|
|
|
|
|
await previousModel.getDoctorReply();
|
|
|
|
|
Navigator.pop(context);
|
|
|
|
|
GifLoaderDialogUtils.showMyDialog(context);
|
|
|
|
|
await previousModel.createDoctorResponse(msgController.text, reply);
|
|
|
|
|
if(previousModel.state == ViewState.ErrorLocal) {
|
|
|
|
|
Helpers.showErrorToast(previousModel.error);
|
|
|
|
|
} else {
|
|
|
|
|
DrAppToastMsg.showSuccesToast("Thank you for your replay ");
|
|
|
|
|
await previousModel.getDoctorReply();
|
|
|
|
|
Navigator.pop(context);
|
|
|
|
|
}
|
|
|
|
|
GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
|
}
|
|
|
|
|
GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|