|
|
|
@ -23,9 +23,9 @@ class DoctorReplayChat extends StatelessWidget {
|
|
|
|
|
|
|
|
|
|
final ListGtMyPatientsQuestions reply;
|
|
|
|
|
TextEditingController msgController = TextEditingController();
|
|
|
|
|
|
|
|
|
|
final DoctorReplayViewModel previousModel;
|
|
|
|
|
DoctorReplayChat(
|
|
|
|
|
{Key key, this.reply,
|
|
|
|
|
{Key key, this.reply, this.previousModel,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@ -337,13 +337,14 @@ class DoctorReplayChat extends StatelessWidget {
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
FractionallySizedBox(
|
|
|
|
|
child: Container(
|
|
|
|
|
|
|
|
|
|
child: TextFields(
|
|
|
|
|
borderRadius: 0,
|
|
|
|
|
hasLabelText: msgController.text != ''
|
|
|
|
|
? true
|
|
|
|
|
: false,
|
|
|
|
|
showLabelText: false,
|
|
|
|
|
hintText: "\n"+TranslationBase
|
|
|
|
|
// hasLabelText: msgController.text != ''
|
|
|
|
|
// ? true
|
|
|
|
|
// : false,
|
|
|
|
|
// showLabelText: false,
|
|
|
|
|
hintText: TranslationBase
|
|
|
|
|
.of(context)
|
|
|
|
|
.typeHereToReply,
|
|
|
|
|
fontSize: 13.5,
|
|
|
|
@ -356,12 +357,9 @@ class DoctorReplayChat extends StatelessWidget {
|
|
|
|
|
helpers.showErrorToast("An error happened while you are replaying");
|
|
|
|
|
} else {
|
|
|
|
|
DrAppToastMsg.showSuccesToast("Thank you for your replay ");
|
|
|
|
|
await previousModel.getDoctorReply();
|
|
|
|
|
Navigator.pop(context);
|
|
|
|
|
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
MaterialPageRoute(
|
|
|
|
|
builder: (BuildContext context) =>
|
|
|
|
|
DoctorReplyScreen()));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -392,48 +390,6 @@ class DoctorReplayChat extends StatelessWidget {
|
|
|
|
|
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
// bottomSheet: Container(
|
|
|
|
|
// width: double.infinity,
|
|
|
|
|
// // height: MediaQuery.of(context).size.height * 0.12,
|
|
|
|
|
// child: Column(
|
|
|
|
|
// mainAxisSize: MainAxisSize.min,
|
|
|
|
|
// children: <Widget>[
|
|
|
|
|
// FractionallySizedBox(
|
|
|
|
|
// child: Container(
|
|
|
|
|
// child: TextFields(
|
|
|
|
|
// borderRadius: 0,
|
|
|
|
|
// hasLabelText: msgController.text != ''
|
|
|
|
|
// ? true
|
|
|
|
|
// : false,
|
|
|
|
|
// showLabelText: false,
|
|
|
|
|
// hintText: "\n"+TranslationBase
|
|
|
|
|
// .of(context)
|
|
|
|
|
// .typeHereToReply,
|
|
|
|
|
// fontSize: 13.5,
|
|
|
|
|
//
|
|
|
|
|
// suffixIcon: FontAwesomeIcons.arrowRight,
|
|
|
|
|
// suffixIconColor: Colors.green,
|
|
|
|
|
// onSuffixTap: (){
|
|
|
|
|
// model.replay(msgController.text, reply);
|
|
|
|
|
// },
|
|
|
|
|
// // hintColor: Colors.black,
|
|
|
|
|
// fontWeight: FontWeight.w600,
|
|
|
|
|
// maxLines: 50,
|
|
|
|
|
// minLines: 3,
|
|
|
|
|
// controller: msgController,
|
|
|
|
|
// validator: (value) {
|
|
|
|
|
// if (value == null || value == "")
|
|
|
|
|
// return TranslationBase.of(context)
|
|
|
|
|
// .emptyMessage;
|
|
|
|
|
// else
|
|
|
|
|
// return null;
|
|
|
|
|
// }),
|
|
|
|
|
//
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// )
|
|
|
|
|
));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|