TitledPageView.builder constructor
Takes two IndexedWidgetBuilder
's and constructs the title and the body from them.
Creates a semi-infinitely scrollable PageView
, where the title is build from
titleBuilder
and the body from bodyBuilder
. Contrary to PageView.builder
,
there is no itemCount
option, in order to make the TitledPageView finite sized.
Implementation
TitledPageView.builder({
Key key,
this.reverse = false,
this.pageSnapping = true,
this.fadeEffect = true,
this.controlButtons = true,
PageController controller,
this.physics,
this.onPageChanged,
@required this.titleBuilder,
@required this.bodyBuilder
}) : controller = controller ?? PageController();