Skip to content

Is there a way to select text field on double tab? #1165

Closed

Description

@brunodmn

Environment

7.7.0

Describe your question

I willing to know if its possible to select all text within a form field with a double tap, something like this.

I am able to do the selection on the field, but could not attribute it to the field, my code:

(...)
GestureDetector(
                onDoubleTap: (() {
                  final String email =
                      controller.formKey.currentState!.fields['email']!.value;
                TextSelection(baseOffset: 0, extentOffset: email.length);
                }),
(..)

Activity

  1. locked and limited conversation to collaborators on May 3, 2023
  2. converted this issue into a discussion #1236 on May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions