Hari07
Committed by GitHub

Expose `onAttach` and `onDetach` in scroll controller (#386)

* Expose onattach and ondetach in scroll controller

* Expose on attach and detach in sheet controller
... ... @@ -19,6 +19,8 @@ class SheetPrimaryScrollController extends ScrollController {
SheetPrimaryScrollController({
super.initialScrollOffset,
super.debugLabel,
super.onAttach,
super.onDetach,
required this.sheetContext,
});
... ...
... ... @@ -317,7 +317,11 @@ class _DefaultSheetScrollController extends StatelessWidget {
/// * [SheetPosition], which manages the positioning logic for
/// this controller.
class SheetController extends ScrollController {
SheetController({super.debugLabel}) : super(initialScrollOffset: 0);
SheetController({
super.debugLabel,
super.onAttach,
super.onDetach,
}) : super(initialScrollOffset: 0);
final ProxyAnimation _animation = ProxyAnimation();
Animation<double> get animation => _animation;
... ...