File tree 2 files changed +20
-1
lines changed
2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ class SliverLayoutDimensions {
80
80
scrollOffset,
81
81
precedingScrollExtent,
82
82
viewportMainAxisExtent,
83
- viewportMainAxisExtent
83
+ crossAxisExtent,
84
84
);
85
85
}
86
86
Original file line number Diff line number Diff line change @@ -1019,6 +1019,25 @@ void main() {
1019
1019
}
1020
1020
expect (threw, true );
1021
1021
});
1022
+
1023
+ // Regression test for https://github.com/flutter/flutter/issues/150305
1024
+ test ('SliverLayoutDimensions has correct hashCode' , () {
1025
+ const SliverLayoutDimensions dimensions = SliverLayoutDimensions (
1026
+ scrollOffset: 1.0 ,
1027
+ precedingScrollExtent: 2.0 ,
1028
+ viewportMainAxisExtent: 3.0 ,
1029
+ crossAxisExtent: 4.0 ,
1030
+ );
1031
+ expect (
1032
+ dimensions.hashCode,
1033
+ Object .hash (
1034
+ dimensions.scrollOffset,
1035
+ dimensions.precedingScrollExtent,
1036
+ dimensions.viewportMainAxisExtent,
1037
+ dimensions.crossAxisExtent,
1038
+ ),
1039
+ );
1040
+ });
1022
1041
}
1023
1042
1024
1043
class _DummyHitTestTarget implements HitTestTarget {
You can’t perform that action at this time.
0 commit comments