Teamspiele implementieren #217

Open
flixcoo wants to merge 55 commits from feature/168-teamspiele-implementieren into development
2 changed files with 4 additions and 4 deletions
Showing only changes of commit 4b30673125 - Show all commits

View File

@@ -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);

View File

@@ -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;