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:70 — onReorder
lib/features/goals/root_pane.dart:74 — onReorder
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.
flutter analyze lib teston a Flutter newer than 3.41 reports twodeprecated_member_useinfos and exits 1:lib/features/goals/child_pane.dart:70—onReorderlib/features/goals/root_pane.dart:74—onReorderCI 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. ReplaceonReorderwithonReorderItem(which already adjustsnewIndexfor the removed item, so the manual index correction in the callbacks needs to go too).Noticed while working #21; out of scope there.