Skip to content

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

Merged
merged 2 commits into from
May 11, 2022

Conversation

xu-baolin
Copy link
Member

Fixes #103404

Was introduced by #97971

@flutter-dashboard flutter-dashboard bot added the framework flutter/packages/flutter repository. See also f: labels. label May 10, 2022
@xu-baolin xu-baolin requested a review from jonahwilliams May 10, 2022 11:57
@xu-baolin
Copy link
Member Author

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 {
Copy link
Member

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.

Copy link
Member Author

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;
Copy link
Member

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Member

@jonahwilliams jonahwilliams left a 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

@jonahwilliams
Copy link
Member

Thanks @xu-baolin !

@fluttergithubbot fluttergithubbot merged commit d29ccad into flutter:master May 11, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 11, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request May 12, 2022
jonahwilliams pushed a commit to jonahwilliams/flutter that referenced this pull request Jun 1, 2022
itsjustkevin pushed a commit that referenced this pull request Jun 1, 2022
…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]>
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 30, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Aug 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
framework flutter/packages/flutter repository. See also f: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SliverReorderableList can not reorder on Android platform
3 participants