Skip to content

Scroll crazy when SelectionArea + SingleChildScrollView #110917

@sxd1140

Description

@sxd1140

Steps to Reproduce

  1. Execute flutter run on the code sample
  2. Just select text.

Sep-04-2022 03-52-45

Code sample
Widget build(BuildContext context) {
    return const SelectionArea(
      child: Scaffold(
        body: Center(
          child: SizedBox(
            width: 100,
            height: 20,
            child: SingleChildScrollView(
              child: Text('adfadsfadfdasfadsfadsfadsfadsfadsfasdfadsf'),
            ),
          ),
        ),
      ),
    );
  }
Details
Flutter 3.4.0-19.0.pre.63 • channel master • https://github.com/flutter/flutter.git
Framework • revision 81906fffda (11 hours ago) • 2022-09-03 04:06:18 -0400
Engine • revision 201fd14c71
Tools • Dart 2.19.0 (build 2.19.0-168.0.dev) • DevTools 2.17.0

@chunhtai

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listf: scrollingViewports, list views, slivers, etc.f: selectionSelectableRegion, SelectionArea, SelectionContainer, Selectable, and related APIsfound in release: 3.3Found to occur in 3.3found in release: 3.4Found to occur in 3.4frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onr: fixedIssue is closed as already fixed in a newer version

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions