buildPageViewBody method
Implementation
Widget buildPageViewBody(BuildContext context) {
return Column(
children: [
pageControllerState.progress.build(
(context, percentage) =>
_buildProgressIndicator(context, percentage: percentage),
),
Expanded(
child: NotificationListener<ScrollNotification>(
onNotification: (notification) {
if (notification is ScrollEndNotification) {
pageControllerState.onScrollEndNotificationReceived();
}
return true;
},
child: PageView(
physics: const NeverScrollableScrollPhysics(),
controller: pageControllerState.controller,
scrollDirection: Axis.horizontal,
children: children,
),
),
),
],
);
}