-
Notifications
You must be signed in to change notification settings - Fork 28.5k
fix SliverReorderableList
not work on Android platform bug
#103406
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
Conversation
This should release with #97971 CC @jonahwilliams |
@@ -7,6 +7,65 @@ import 'package:flutter/material.dart'; | |||
import 'package:flutter_test/flutter_test.dart'; | |||
|
|||
void main() { | |||
testWidgets('SliverReorderableList works well when having gestureSettings', (WidgetTester tester) async { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How does this catch the regression? The tester will have the same default touch slop value since it is not run on android - you'd need to override the platform config on the test window to provide a touch slop value that is different than the default value.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have overridden the MediaQueryData
of the pump widget.
@@ -7,6 +7,65 @@ import 'package:flutter/material.dart'; | |||
import 'package:flutter_test/flutter_test.dart'; | |||
|
|||
void main() { | |||
testWidgets('SliverReorderableList works well when having gestureSettings', (WidgetTester tester) async { | |||
// Regression test for https://github.com/flutter/flutter/issues/103404 | |||
debugPrintGestureArenaDiagnostics = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: please remove these for tests or ensure they are wrapped in a try / finally so a testfailure doesn't fail everything in this file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahh got it. LGTM
Thanks @xu-baolin ! |
…egressions (#105141) * [framework] fix slider regression due to touch slop changes (#103569) * fix `SliverReorderableList` not work on Android platform bug (#103406) Co-authored-by: xubaolin <[email protected]>
Fixes #103404
Was introduced by #97971