File tree Expand file tree Collapse file tree 2 files changed +77
-52
lines changed Expand file tree Collapse file tree 2 files changed +77
-52
lines changed Original file line number Diff line number Diff line change @@ -441,6 +441,7 @@ class NestedScrollViewState extends State<NestedScrollView> {
441
441
void dispose () {
442
442
_coordinator! .dispose ();
443
443
_coordinator = null ;
444
+ _absorberHandle.dispose ();
444
445
super .dispose ();
445
446
}
446
447
@@ -1620,6 +1621,13 @@ class _NestedOuterBallisticScrollActivity extends BallisticScrollActivity {
1620
1621
/// [SliverOverlapAbsorber] to align its children, and which shows sample
1621
1622
/// usage for this class.
1622
1623
class SliverOverlapAbsorberHandle extends ChangeNotifier {
1624
+ /// Creates a [SliverOverlapAbsorberHandle] .
1625
+ SliverOverlapAbsorberHandle () {
1626
+ if (kFlutterMemoryAllocationsEnabled) {
1627
+ ChangeNotifier .maybeDispatchObjectCreation (this );
1628
+ }
1629
+ }
1630
+
1623
1631
// Incremented when a RenderSliverOverlapAbsorber takes ownership of this
1624
1632
// object, decremented when it releases it. This allows us to find cases where
1625
1633
// the same handle is being passed to two render objects.
You can’t perform that action at this time.
0 commit comments