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,
child: Column(
children: [
AppTextFieldCustom(
hintText: widget.visitType == 3
? (widget.isUpdate ? 'Update' : 'Add') +
' Order Sheet'
: (widget.isUpdate ? 'Update' : 'Add') +
' Progress Note',
//TranslationBase.of(context).addProgressNote,
controller: progressNoteController,
maxLines: 35,
minLines: 25,
hasBorder: true,
suffixIcon: IconButton(
icon: Icon(
DoctorApp.speechtotext,
color: Colors.black,
Stack(
children: [
AppTextFieldCustom(
hintText: widget.visitType == 3
? (widget.isUpdate ? 'Update' : 'Add') +
' Order Sheet'
: (widget.isUpdate ? 'Update' : 'Add') +
' Progress Note',
//TranslationBase.of(context).addProgressNote,
controller: progressNoteController,
maxLines: 35,
minLines: 25,
hasBorder: true,
// isTextFieldHasSuffix: true,
validationError:
progressNoteController.text.isEmpty && isSubmitted
? TranslationBase.of(context).emptyMessage
: null,
),
onPressed: () {
onVoiceText();
},
),
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(
DoctorApp.speechtotext,
color: Colors.black,
),
onPressed: () {
onVoiceText();
},
),
)
],
),
],
),

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

Loading…
Cancel
Save