Repository navigation
WidgetTester.dragUntilVisible() docs to say "use negative offset to swipe up" #89332
Copy link
Copy link
Closed
Closed
Copy link
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: tests"flutter test", flutter_test, or one of our tests"flutter test", flutter_test, or one of our testsc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterd: api docsIssues with https://api.flutter.dev/Issues with https://api.flutter.dev/frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.team-frameworkOwned by Framework teamOwned by Framework teamtriaged-frameworkTriaged by Framework teamTriaged by Framework team
Description
Activity
- addedin triagePresently being triaged by the triage teamPresently being triaged by the triage teama: tests"flutter test", flutter_test, or one of our tests"flutter test", flutter_test, or one of our testsframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.c: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterand removedin triagePresently being triaged by the triage teamPresently being triaged by the triage team
on Sep 2, 2021 - addedP2Important issues not at the top of the work listImportant issues not at the top of the work list
on Mar 23, 2022 - addedd: api docsIssues with https://api.flutter.dev/Issues with https://api.flutter.dev/
on Jul 5, 2023 - addedteam-frameworkOwned by Framework teamOwned by Framework teamtriaged-frameworkTriaged by Framework teamTriaged by Framework team
on Jul 8, 2023 - added a commit that references this issue
on Jun 11, 2026 - added a commit that references this issue
on Jun 26, 2026 This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.- locked as resolved and limited conversation to collaborators
on Jul 14, 2026
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: tests"flutter test", flutter_test, or one of our tests"flutter test", flutter_test, or one of our testsc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterd: api docsIssues with https://api.flutter.dev/Issues with https://api.flutter.dev/frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.team-frameworkOwned by Framework teamOwned by Framework teamtriaged-frameworkTriaged by Framework teamTriaged by Framework team
Use case
I need to use
WidgetTester.dragUntilVisible()(inherited fromWidgetController.dragUntilVisible). The method takes amoveStepparameter of typeOffset. I need to know what numericaldxanddyvalues to pass to theOffsetconstructor.I discovered the information by trial-and-error. That took some time because of #88756, #88763 , #88759, and #88762.
dragUntilVisible()uses a negative offset to scroll down, whilescrollUntilVisible()uses a positive one.Proposal
Update the docs to say: