Updated deprecated attribute
All checks were successful
Pull Request Pipeline / lint (pull_request) Successful in 48s
Pull Request Pipeline / test (pull_request) Successful in 49s
Pull Request Pipeline / localizations (pull_request) Successful in 29s

This commit is contained in:
2026-05-23 00:41:36 +02:00
parent 047c4e88d3
commit 4b30673125
2 changed files with 4 additions and 4 deletions

View File

@@ -60,7 +60,7 @@ class _ManageMembersViewState extends State<ManageMembersView> {
padding: const EdgeInsets.fromLTRB(0, 12, 0, 96),
buildDefaultDragHandles: false,
itemCount: allItemsCount,
onReorder: onReorder,
onReorderItem: onReorderItem,
proxyDecorator: (child, index, animation) =>
Material(type: MaterialType.transparency, child: child),
itemBuilder: (context, index) {
@@ -188,7 +188,7 @@ class _ManageMembersViewState extends State<ManageMembersView> {
}
/// Handles moving a member from one team to another
void onReorder(int oldIndex, int newIndex) {
void onReorderItem(int oldIndex, int newIndex) {
final sourceTeamIndex = teamIndexForFlat(oldIndex);
final sourceMemberIndex = memberIndexForFlat(oldIndex, sourceTeamIndex);

View File

@@ -715,7 +715,7 @@ class _MatchResultViewState extends State<MatchResultView> {
},
);
},
onReorder: (int oldIndex, int newIndex) {
onReorderItem: (int oldIndex, int newIndex) {
setState(() {
if (newIndex > oldIndex) {
newIndex -= 1;
@@ -767,7 +767,7 @@ class _MatchResultViewState extends State<MatchResultView> {
},
);
},
onReorder: (int oldIndex, int newIndex) {
onReorderItem: (int oldIndex, int newIndex) {
setState(() {
if (newIndex > oldIndex) {
newIndex -= 1;