Skip to content

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

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);
                }),
(..)

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions