Skip to content

Migrate ReorderableListView onReorder to onReorderItem (deprecated in Flutter 3.41) #29

Description

@yvanvds

flutter analyze lib test on a Flutter newer than 3.41 reports two deprecated_member_use infos and exits 1:

  • lib/features/goals/child_pane.dart:70onReorder
  • lib/features/goals/root_pane.dart:74onReorder

CI pins Flutter 3.38.3 (.github/workflows), where the member is not yet deprecated, so CI is green today; the analyze step will start failing on the next Flutter bump. Replace onReorder with onReorderItem (which already adjusts newIndex for the removed item, so the manual index correction in the callbacks needs to go too).

Noticed while working #21; out of scope there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions