make icon on top

merge-requests/567/head
Elham Rababah 5 years ago
parent d8f27f6a98
commit 1a830b7f44

@ -94,6 +94,8 @@ class _UpdateNoteOrderState extends State<UpdateNoteOrder> {
child: FractionallySizedBox( child: FractionallySizedBox(
widthFactor: 0.9, widthFactor: 0.9,
child: Column( child: Column(
children: [
Stack(
children: [ children: [
AppTextFieldCustom( AppTextFieldCustom(
hintText: widget.visitType == 3 hintText: widget.visitType == 3
@ -106,7 +108,18 @@ class _UpdateNoteOrderState extends State<UpdateNoteOrder> {
maxLines: 35, maxLines: 35,
minLines: 25, minLines: 25,
hasBorder: true, hasBorder: true,
suffixIcon: IconButton(
// isTextFieldHasSuffix: true,
validationError:
progressNoteController.text.isEmpty && isSubmitted
? TranslationBase.of(context).emptyMessage
: null,
),
Positioned(
top: 0,//MediaQuery.of(context).size.height * 0,
right: 15,
child: IconButton(
icon: Icon( icon: Icon(
DoctorApp.speechtotext, DoctorApp.speechtotext,
color: Colors.black, color: Colors.black,
@ -115,12 +128,8 @@ class _UpdateNoteOrderState extends State<UpdateNoteOrder> {
onVoiceText(); onVoiceText();
}, },
), ),
)
isTextFieldHasSuffix: true, ],
validationError:
progressNoteController.text.isEmpty && isSubmitted
? TranslationBase.of(context).emptyMessage
: null,
), ),
], ],
), ),

@ -68,6 +68,8 @@ class _AddReplayOnReferralPatientState extends State<AddReplayOnReferralPatient>
child: FractionallySizedBox( child: FractionallySizedBox(
widthFactor: 0.9, widthFactor: 0.9,
child: Column( child: Column(
children: [
Stack(
children: [ children: [
AppTextFieldCustom( AppTextFieldCustom(
hintText: 'Replay your responses here', hintText: 'Replay your responses here',
@ -75,7 +77,16 @@ class _AddReplayOnReferralPatientState extends State<AddReplayOnReferralPatient>
maxLines: 35, maxLines: 35,
minLines: 25, minLines: 25,
hasBorder: true, hasBorder: true,
suffixIcon: IconButton( validationError:
progressNoteController.text.isEmpty &&
isSubmitted
? TranslationBase.of(context).emptyMessage
: null,
),
Positioned(
top: 0,//MediaQuery.of(context).size.height * 0,
right: 15,
child: IconButton(
icon: Icon( icon: Icon(
DoctorApp.speechtotext, DoctorApp.speechtotext,
color: Colors.black, color: Colors.black,
@ -84,10 +95,8 @@ class _AddReplayOnReferralPatientState extends State<AddReplayOnReferralPatient>
onVoiceText(); onVoiceText();
}, },
), ),
validationError: )
progressNoteController.text.isEmpty && isSubmitted ],
? TranslationBase.of(context).emptyMessage
: null,
), ),
], ],
), ),

Loading…
Cancel
Save