buildTransformAndScrollbars method
Gets called every time the transform changes. The default implementation returns a ListenableBuilder that listens to the rebuildNotifier and rebuilds the scrollbars and the transform, but not the child.
Instead of overriding this method, consider overriding buildAroundTransformAndScrollbar.
Implementation
@override
Widget buildTransformAndScrollbars(BuildContext context, Widget child) {
return ListenableBuilder(
listenable: rebuildNotifier,
builder: (context, c) {
return buildAroundTransformAndScrollbar(
context,
TransformAndScrollbarsWidget(
scrollbarController: scrollbarController,
transform: transformForRender,
onResize: () => Future.microtask(afterResize),
overrideSize: overrideSize,
child: child,
),
);
},
);
}