I'm facing an issue with the FormBuilderTextField widget in Flutter. I want to enable copy-paste interaction within the FormBuilderTextField when I long-press it, but it doesn't seem to work as expected. Here's my code:
FormBuilderTextField(
name: 'pincode',
style: const TextStyle(
color: primaryColor,
fontSize: 12,
fontWeight: FontWeight.w400,
),
onChanged: (value) {},
maxLength: 6,
decoration: InputDecoration(
contentPadding: const EdgeInsets.only(left: 12),
counterText: "",
border: buildBorderDecoration(),
enabledBorder: buildEnableAndDisabledBorder(),
errorBorder: buildErrorBorder(),
disabledBorder: buildEnableAndDisabledBorder(),
floatingLabelBehavior: FloatingLabelBehavior.never,
fillColor: Colors.white,
filled: true,
labelText: '680024',
labelStyle: const TextStyle(
color: lightGrey,
fontSize: 12,
fontWeight: FontWeight.w400,
),
),
),
Despite setting enableInteractiveSelection to true, the copy-paste interaction is not working. Any suggestions on how to resolve this issue would be greatly appreciated.
Flutter version: 3.10.2
Operating System: Windows
Any other relevant details or code snippets.
Please let me know if you have any insights or solutions to this problem. Thank you