File tree 2 files changed +9
-1
lines changed
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 {
348
348
|| oldDelegate.overscroll != overscroll
349
349
|| oldDelegate.physics != physics
350
350
|| oldDelegate.platform != platform
351
- || setEquals <PointerDeviceKind >(oldDelegate.dragDevices, dragDevices)
351
+ || ! setEquals <PointerDeviceKind >(oldDelegate.dragDevices, dragDevices)
352
352
|| delegate.shouldNotify (oldDelegate.delegate);
353
353
}
354
354
Original file line number Diff line number Diff line change @@ -32,6 +32,14 @@ class TestScrollBehavior extends ScrollBehavior {
32
32
}
33
33
34
34
void 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
+
35
43
testWidgets ('Inherited ScrollConfiguration changed' , (WidgetTester tester) async {
36
44
final GlobalKey key = GlobalKey (debugLabel: 'scrollable' );
37
45
TestScrollBehavior ? behavior;
You can’t perform that action at this time.
0 commit comments