Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when using ReorderableListView inside ResponsiveScaledBox ( v1.1.1 and below) #163

Open
kiranvivo opened this issue Nov 15, 2023 · 3 comments

Comments

@kiranvivo
Copy link

Hi,
Have you Noticed?
When you try to use the drag feature in the Flutter ReorderableListView, it throws

I/flutter (14425): I/flutter (14425): ===Firebase Crash ERROR Catcher======= I/flutter (14425): I/flutter (14425): , 'package:flutter/src/widgets/scrollable_helpers.dart': Failed assertion: line 238 pos 7: 'globalRect.size.width >= _dragTargetRelatedToScrollOrigin.size.width && scrollable_helpers.dart:238 I/flutter (14425): globalRect.size.height >= _dragTargetRelatedToScrollOrigin.size.height': Drag target size is larger than scrollable size, which may cause bouncing, #0 _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:51:61) I/flutter (14425): #1 _AssertionError._throwNew (dart:core-patch/errors_patch.dart:40:5) I/flutter (14425): #2 EdgeDraggingAutoScroller._scroll scrollable_helpers.dart:238 I/flutter (14425): #3 EdgeDraggingAutoScroller.startAutoScrollIfNecessary scrollable_helpers.dart:223 I/flutter (14425): #4 SliverReorderableListState._dragUpdate.<anonymous closure> reorderable_list.dart:777 I/flutter (14425): #5 State.setState framework.dart:1138 I/flutter (14425): #6 SliverReorderableListState._dragUpdate ( I/flutter (14425): ----------------FIREBASE CRASHLYTICS---------------- I/flutter (14425): The following exception was thrown Bug at zoneguard catcher: I/flutter (14425): 'package:flutter/src/widgets/scrollable_helpers.dart': Failed assertion: line 238 pos 7: 'globalRect.size.width >= _dragTargetRelatedToScrollOrigin.size.width && scrollable_helpers.dart:238 I/flutter (14425): globalRect.size.height >= _dragTargetRelatedToScrollOrigin.size.height': Drag target size is larger than scrollable size, which may cause bouncing I/flutter (14425): #0 _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:51:61) I/flutter (14425): #1 _AssertionError._throwNew (dart:core-patch/errors_patch.dart:40:5)
Screenshot 2023-11-15 at 11 36 37 PM

@kiranvivo
Copy link
Author

++
The Card UI animation overflows when held up during drag. It looks like a very critical bug to me.

@kiranvivo
Copy link
Author

@rayliverified Any thoughts on the above?

@elkSal
Copy link

elkSal commented Mar 6, 2024

Facing same issue with ReorderableListView, when dragging, the item overflows and become bigger than original size.
Quick dirty solution is to use internal padding as follows

ReorderableListView(
                  padding:
                      const EdgeInsets.symmetric(horizontal: 30, vertical: 20),

This puts some padding around the list view item so that on drag, it doesn't overflow screen width.

No solution yet?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants