-
Notifications
You must be signed in to change notification settings - Fork 30.1k
Closed
Closed
Copy link
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listc: API breakBackwards-incompatible API changesBackwards-incompatible API changesd: api docsIssues with https://api.flutter.dev/Issues with https://api.flutter.dev/f: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.team-designOwned by Design Languages teamOwned by Design Languages teamtriaged-designTriaged by Design Languages teamTriaged by Design Languages team
Description
The value of the onReorderCallback's newIndex and oldIndex parameters are non-intuitive due to some now-historical flawed API engineering. They're explained here: https://api.flutter.dev/flutter/widgets/ReorderCallback.html, but not in https://api.flutter.dev/flutter/material/ReorderableListView-class.html or in https://api.flutter.dev/flutter/material/ReorderableListView/onReorder.html.
We decided not to fix the problem because there wasn't a way to automatically update old apps: #93146 (comment) which many developers were unhappy about.
The documentation for the ReorderableListView and for ReorderableListView.onReorder should explain this quirk.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listc: API breakBackwards-incompatible API changesBackwards-incompatible API changesd: api docsIssues with https://api.flutter.dev/Issues with https://api.flutter.dev/f: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.team-designOwned by Design Languages teamOwned by Design Languages teamtriaged-designTriaged by Design Languages teamTriaged by Design Languages team