title: Copy and Paste not working in TextFormField & TextField in Flutter
body: <h2><strong>Solved</strong>: COPY &amp; PASTE Not Working in TextFormField</h2>
  <p>Found out that I was using <code>Listener</code>'s <strong>onPointerDown</strong> Method to remove focus if the user clicks anywhere else in the App. But this was causing the error.</p>
  <p><em>But the problem is now how to remove focus if anyone clicks somewhere else.</em></p>
  <pre><code>Listener(
      onPointerDown: (_) {
         FocusScopeNode currentFocus = FocusScope.of(context);
         if (!currentFocus.hasPrimaryFocus &amp;&amp;
         currentFocus.focusedChild != null) {
         currentFocus.focusedChild.unfocus();
        }
    },)
  </code></pre>
  <p>I'm trying to have <strong>Copy</strong> &amp; <strong>Paste</strong> feature in the <code>TextFormField</code> in my Flutter app. I tried many ways but still, it's not working.</p>
  <hr />
  <p>Here is my Code</p>
  <pre><code>Widget textFormWidget(
     String label, TextEditingController controller, bool enabled) {
  return Padding(
    padding: const EdgeInsets.all(8.0),
    child: TextFormField(
      enabled: true,
      enableInteractiveSelection: true,
      readOnly: false,
      toolbarOptions:
          ToolbarOptions(paste: true, cut: true, selectAll: true, copy: true),
      textAlign: TextAlign.center,
      cursorColor: Colors.white,
      cursorWidth: 3,
      controller: controller,
      style: bold.copyWith(fontSize: 18),
      decoration: InputDecoration(
          focusColor: Colors.white,
          hoverColor: Colors.white,
          labelText: label,
          alignLabelWithHint: true,
          labelStyle: normal),
     ),
   );
  }
  </code></pre>
  <p>Calling this as <code>textFormWidget('Name', nameController, true),</code></p>
  <p>If you need more code or information, please comment.</p>