Skip to content

[EditableText] value should be selectable via double click on web in edit mode #138978

@cedvdb

Description

@cedvdb

Is there an existing issue for this?

Steps to reproduce

  1. run sample on web platform ( I did not try other platforms)
  2. click "hello to enter edit"
  3. try selection with double click

Expected results

text selection

Actual results

no text selection

Code sample

import 'package:flutter/material.dart';

const Color darkBlue = Color.fromARGB(255, 18, 32, 47);

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData.dark().copyWith(
        scaffoldBackgroundColor: darkBlue,
      ),
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        body: Center(
          child: MyWidget(),
        ),
      ),
    );
  }
}

final controller = TextEditingController(text: 'hello world');
final focusNode = FocusNode();

class MyWidget extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return EditableText(
      controller: controller,
      focusNode: focusNode,
      backgroundCursorColor: Colors.yellow,
      cursorColor: Colors.red,
      style: const TextStyle()
    );
  }
}

Screenshots or Video

No response

Logs

No response

Flutter Doctor output

tried in dart pad master and stable channels, respectively 3.16.0 and 3.17.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: text inputEntering text in a text field or keyboard related problemsfound in release: 3.16Found to occur in 3.16found in release: 3.17Found to occur in 3.17frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onteam-frameworkOwned by Framework teamtriaged-frameworkTriaged by Framework team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions