File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -348,7 +348,7 @@ class _WrappedScrollBehavior implements ScrollBehavior {
348348 || oldDelegate.overscroll != overscroll
349349 || oldDelegate.physics != physics
350350 || oldDelegate.platform != platform
351- || setEquals <PointerDeviceKind >(oldDelegate.dragDevices, dragDevices)
351+ || ! setEquals <PointerDeviceKind >(oldDelegate.dragDevices, dragDevices)
352352 || delegate.shouldNotify (oldDelegate.delegate);
353353 }
354354
Original file line number Diff line number Diff line change @@ -32,6 +32,14 @@ class TestScrollBehavior extends ScrollBehavior {
3232}
3333
3434void main () {
35+ // Regression test for https://github.com/flutter/flutter/issues/89681
36+ testWidgets ('_WrappedScrollBehavior shouldNotify test' , (WidgetTester tester) async {
37+ final ScrollBehavior behavior1 = const ScrollBehavior ().copyWith ();
38+ final ScrollBehavior behavior2 = const ScrollBehavior ().copyWith ();
39+
40+ expect (behavior1.shouldNotify (behavior2), false );
41+ });
42+
3543 testWidgets ('Inherited ScrollConfiguration changed' , (WidgetTester tester) async {
3644 final GlobalKey key = GlobalKey (debugLabel: 'scrollable' );
3745 TestScrollBehavior ? behavior;
You can’t perform that action at this time.
0 commit comments