Skip to content

Commit

Permalink
fix: white screen when trying to reorder 2 items at the same time
Browse files Browse the repository at this point in the history
like bruh #315
  • Loading branch information
MSOB7YY committed Aug 7, 2024
1 parent a8ee174 commit 3021865
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/ui/widgets/custom_reorderable_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,8 @@ class SliverReorderableListState extends State<SliverReorderableList> with Ticke

Drag? _dragStart(Offset position) {
assert(_dragInfo == null);
if (_dragInfo != null) return null; // already reordering an item.

final _ReorderableItemState item = _items[_dragIndex!]!;
item.dragging = true;
widget.onReorderStart?.call(_dragIndex!);
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: namida
description: A Beautiful and Feature-rich Music Player, With YouTube & Video Support Built in Flutter
publish_to: "none"
version: 3.8.55-beta+240807158
version: 3.8.56-beta+240807176

environment:
sdk: ">=3.4.0 <4.0.0"
Expand Down

0 comments on commit 3021865

Please sign in to comment.