Home > Enterprise >  How to enable copy/paste on Flutter TextField widget?
How to enable copy/paste on Flutter TextField widget?

Time:05-18

Trying to find the answer using Google search was a problem for me. This is really surprising. I want to be able to copy and paste TextField contents between different TextField's.

CodePudding user response:

you can use :

SelectableText("hello over there")

CodePudding user response:

use Clipboard

  Clipboard.setData(ClipboardData(text: name_cont.text))

This answer may help you: https://stackoverflow.com/a/46260376/1136999

  • Related