Updated deprecated attribute
This commit is contained in:
@@ -60,7 +60,7 @@ class _ManageMembersViewState extends State<ManageMembersView> {
|
|||||||
padding: const EdgeInsets.fromLTRB(0, 12, 0, 96),
|
padding: const EdgeInsets.fromLTRB(0, 12, 0, 96),
|
||||||
buildDefaultDragHandles: false,
|
buildDefaultDragHandles: false,
|
||||||
itemCount: allItemsCount,
|
itemCount: allItemsCount,
|
||||||
onReorder: onReorder,
|
onReorderItem: onReorderItem,
|
||||||
proxyDecorator: (child, index, animation) =>
|
proxyDecorator: (child, index, animation) =>
|
||||||
Material(type: MaterialType.transparency, child: child),
|
Material(type: MaterialType.transparency, child: child),
|
||||||
itemBuilder: (context, index) {
|
itemBuilder: (context, index) {
|
||||||
@@ -188,7 +188,7 @@ class _ManageMembersViewState extends State<ManageMembersView> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Handles moving a member from one team to another
|
/// 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 sourceTeamIndex = teamIndexForFlat(oldIndex);
|
||||||
final sourceMemberIndex = memberIndexForFlat(oldIndex, sourceTeamIndex);
|
final sourceMemberIndex = memberIndexForFlat(oldIndex, sourceTeamIndex);
|
||||||
|
|
||||||
|
|||||||
@@ -715,7 +715,7 @@ class _MatchResultViewState extends State<MatchResultView> {
|
|||||||
},
|
},
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
onReorder: (int oldIndex, int newIndex) {
|
onReorderItem: (int oldIndex, int newIndex) {
|
||||||
setState(() {
|
setState(() {
|
||||||
if (newIndex > oldIndex) {
|
if (newIndex > oldIndex) {
|
||||||
newIndex -= 1;
|
newIndex -= 1;
|
||||||
@@ -767,7 +767,7 @@ class _MatchResultViewState extends State<MatchResultView> {
|
|||||||
},
|
},
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
onReorder: (int oldIndex, int newIndex) {
|
onReorderItem: (int oldIndex, int newIndex) {
|
||||||
setState(() {
|
setState(() {
|
||||||
if (newIndex > oldIndex) {
|
if (newIndex > oldIndex) {
|
||||||
newIndex -= 1;
|
newIndex -= 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user