make icon on top

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

@ -95,32 +95,41 @@ class _UpdateNoteOrderState extends State<UpdateNoteOrder> {
widthFactor: 0.9, widthFactor: 0.9,
child: Column( child: Column(
children: [ children: [
AppTextFieldCustom( Stack(
hintText: widget.visitType == 3 children: [
? (widget.isUpdate ? 'Update' : 'Add') + AppTextFieldCustom(
' Order Sheet' hintText: widget.visitType == 3
: (widget.isUpdate ? 'Update' : 'Add') + ? (widget.isUpdate ? 'Update' : 'Add') +
' Progress Note', ' Order Sheet'
//TranslationBase.of(context).addProgressNote, : (widget.isUpdate ? 'Update' : 'Add') +
controller: progressNoteController, ' Progress Note',
maxLines: 35, //TranslationBase.of(context).addProgressNote,
minLines: 25, controller: progressNoteController,
hasBorder: true, maxLines: 35,
suffixIcon: IconButton( minLines: 25,
icon: Icon( hasBorder: true,
DoctorApp.speechtotext,
color: Colors.black, // isTextFieldHasSuffix: true,
validationError:
progressNoteController.text.isEmpty && isSubmitted
? TranslationBase.of(context).emptyMessage
: null,
), ),
onPressed: () {
onVoiceText(); Positioned(
}, top: 0,//MediaQuery.of(context).size.height * 0,
), right: 15,
child: IconButton(
isTextFieldHasSuffix: true, icon: Icon(
validationError: DoctorApp.speechtotext,
progressNoteController.text.isEmpty && isSubmitted color: Colors.black,
? TranslationBase.of(context).emptyMessage ),
: null, onPressed: () {
onVoiceText();
},
),
)
],
), ),
], ],
), ),

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

Loading…
Cancel
Save