Skip to content

Should SelectionArea cursor lose to click cursor? #104595

@guidezpl

Description

@guidezpl

When wrapping something selectable like Text in an InkWell with onTap, the cursor changes unexpectedly.

Should the SelectionArea cursor be made to "lose" to the click cursor?

import 'package:flutter/material.dart';

class SelectionAreaCursorRepro extends StatelessWidget {
  const SelectionAreaCursorRepro({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: SelectionArea(
        child: Scaffold(
          body: InkWell(
            onTap: () => {},
            child: const Padding(
              padding: EdgeInsets.all(32.0),
              child: Text('Hello'),
            ),
          ),
        ),
      ),
    );
  }
}
SelectionArea.Selection.and.Click.cursors.mp4

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work lista: text inputEntering text in a text field or keyboard related problemsf: material designflutter/packages/flutter/material repository.f: selectionSelectableRegion, SelectionArea, SelectionContainer, Selectable, and related APIsframeworkflutter/packages/flutter repository. See also f: labels.r: fixedIssue is closed as already fixed in a newer version

Type

No type

Projects

Status

Done (PR merged)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions