This is my code:
TextField(
key: controller.encryptedTextKey,
readOnly: true,
keyboardType: TextInputType.multiline,
textInputAction: TextInputAction.newline,
maxLines: null,
controller: controller.encryptedTextController,
decoration: InputDecoration(
hintText: 'text_cryption_encrypted_message_hint'.tr,
hintMaxLines: 2,
suffixIcon: Row(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisSize: MainAxisSize.min,
children: [
IconButton(
onPressed: controller.onSaveEncryptedToClipboard,
icon: Icon(Icons.copy),
),
IconButton(
onPressed: controller.onPasteEncryptedFromClipboard,
icon: Icon(Icons.paste),
),
],
),
),
),
What I have is this:
What I want is this:
How can I make this happen? The problem is that the Row's height is not the same as the TextField's height. The Row's height only covers the icons. But when I try height: double.infinity or Expanded(), I get errors. Maybe it's because the icons are kind of "floating" behind the TextField.

