diff --git a/examples/fn/widgets/fixedheightscrollable.dart b/examples/fn/widgets/fixedheightscrollable.dart index ecb558962ad..83733ea7c0b 100644 --- a/examples/fn/widgets/fixedheightscrollable.dart +++ b/examples/fn/widgets/fixedheightscrollable.dart @@ -64,7 +64,7 @@ abstract class FixedHeightScrollable extends Component { ..events.listen('wheel', _handleWheel); } - void willUnmount() { + void didUnmount() { _stopFling(); } diff --git a/examples/fn/widgets/material.dart b/examples/fn/widgets/material.dart index 89cbdf23531..56aa417ac31 100644 --- a/examples/fn/widgets/material.dart +++ b/examples/fn/widgets/material.dart @@ -61,7 +61,7 @@ abstract class MaterialComponent extends Component { }); } - void willUnmount() { + void didUnmount() { _cancelSplashes(null); }