TitledPageView class
A scrollable list that works page by page with a custom title and controls.
Internally, TitledPageView wraps a PageView
and places a title bar with
optional control buttons above it. The API mimics to the one of PageView
,
hence you can also consult the documentation of PageView
for some of the
members. Similar to PageView
you can use a PageController
to control
which page is visible in the view.
Constructors
-
TitledPageView({Key key, bool reverse: false, bool pageSnapping: true, bool fadeEffect: true, bool controlButtons: true, PageController controller, ScrollPhysics physics, ValueChanged<
int> onPageChanged, List<Widget> titleChildren: const [], List<Widget> children: const [] }) -
Takes two
List
's and constructs the title and the body from them. [...] -
TitledPageView.builder({Key key, bool reverse: false, bool pageSnapping: true, bool fadeEffect: true, bool controlButtons: true, PageController controller, ScrollPhysics physics, ValueChanged<
int> onPageChanged, @required IndexedWidgetBuilder titleBuilder, @required IndexedWidgetBuilder bodyBuilder }) -
Takes two
IndexedWidgetBuilder
's and constructs the title and the body from them. [...]
Properties
- bodyBuilder → IndexedWidgetBuilder
-
Builder objects for the title [...]
final
- controlButtons → bool
-
Option to add control buttons to the title. [...]
final
- controller → PageController
-
Controls the scrolling behaviour of the title and the body
final
- fadeEffect → bool
-
Make the title fade in and out [...]
final
-
onPageChanged
→ ValueChanged<
int> -
Called after the
PageView
reports a change of pages.final - pageSnapping → bool
-
Whether to snap to page after scrolling. [...]
final
- physics → ScrollPhysics
-
Scroll physics for the body [...]
final
- reverse → bool
-
The axis along which the page view scrolls. [...]
final
- titleBuilder → IndexedWidgetBuilder
-
Builder objects for the title [...]
final
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- key → Key
-
Controls how one widget replaces another widget in the tree. [...]
final, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
createState(
) → State< StatefulWidget> - Creates the mutable state for this widget at a given location in the tree. [...]
-
createElement(
) → StatefulElement -
Creates a
StatefulElement
to manage this widget's location in the tree. [...]inherited -
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of
DiagnosticsNode
objects describing this node's children. [...]@protected, inherited -
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node. [...]
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toDiagnosticsNode(
{String name, DiagnosticsTreeStyle style }) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by toStringDeep. [...]
inherited
-
toString(
{DiagnosticLevel minLevel: DiagnosticLevel.debug }) → String -
Returns a string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne: '', String prefixOtherLines, DiagnosticLevel minLevel: DiagnosticLevel.debug }) → String -
Returns a string representation of this node and its descendants. [...]
inherited
-
toStringShallow(
{String joiner: ', ', DiagnosticLevel minLevel: DiagnosticLevel.debug }) → String -
Returns a one-line detailed description of the object. [...]
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited