message static method
dynamic
message({
- required BaseRefreshController controller,
- ScrollController? scrollController,
- VoidCallback? onLoading,
- required Widget sliver,
Implementation
static message(
{required BaseRefreshController controller,
ScrollController? scrollController,
VoidCallback? onLoading,
Widget? footer,
required Widget sliver}) {
return BaseSmartRefresher(
enablePullDown: false,
onLoading: onLoading,
footer: footer ?? ClassicFooter(),
enablePullUp: true,
controller: controller,
child: Scrollable(
controller: scrollController,
axisDirection: AxisDirection.up,
viewportBuilder: (context, offset) {
return BaseExpandedViewport(
offset: offset,
axisDirection: AxisDirection.up,
slivers: <Widget>[
BaseSliverExpanded(),
sliver,
],
);
},
),
);
}