LivePageView class
PageView widget with its properties controlled by ValueCells.
The constructor takes the same arguments as the unnamed constructor of PageView, but as ValueCell's. This binds each property value to the ValueCell given in the constructor. If the cell value is changed, the value of the corresponding property to which it is bound is automatically updated to reflect the value of the cell.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- LivePageView
Constructors
-
LivePageView({Key? key, required MutableCell<
int> page, ValueCell<bool> ? animate, ValueCell<Duration> ? duration, ValueCell<Curve> ? curve, ValueCell<void> ? nextPage, ValueCell<void> ? previousPage, MetaCell<bool> ? isAnimating, Axis scrollDirection = Axis.horizontal, bool reverse = false, ScrollPhysics? physics, bool pageSnapping = true, List<Widget> children = const <Widget>[], DragStartBehavior dragStartBehavior = DragStartBehavior.start, bool allowImplicitScrolling = false, String? restorationId, Clip clipBehavior = Clip.hardEdge, HitTestBehavior hitTestBehavior = HitTestBehavior.opaque, ScrollBehavior? scrollBehavior, bool padEnds = true}) -
const
Properties
- allowImplicitScrolling → bool
-
final
-
animate
→ ValueCell<
bool> ? -
Should the transition between pages be animated?
final
-
children
→ List<
Widget> -
final
- clipBehavior → Clip
-
final
-
curve
→ ValueCell<
Curve> ? -
Curve function to use for page transition animations.
final
- dragStartBehavior → DragStartBehavior
-
final
-
duration
→ ValueCell<
Duration> ? -
Duration of the page transition animation.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hitTestBehavior → HitTestBehavior
-
final
-
isAnimating
→ MetaCell<
bool> ? -
MetaCell injected with a cell that is true while a page transition is in progress.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
nextPage
→ ValueCell<
void> ? -
Action cell which triggers a transition to the next page.
final
- padEnds → bool
-
final
-
page
→ MutableCell<
int> -
Cell holding the selected page index.
final
- pageSnapping → bool
-
final
- physics → ScrollPhysics?
-
final
-
previousPage
→ ValueCell<
void> ? -
Action cell which triggers a transition to the previous page.
final
- restorationId → String?
-
final
- reverse → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollBehavior → ScrollBehavior?
-
final
- scrollDirection → Axis
-
final
Methods
-
bind(
{MutableCell< int> ? page, ValueCell<bool> ? animate, ValueCell<Duration> ? duration, ValueCell<Curve> ? curve, ValueCell<void> ? nextPage, ValueCell<void> ? previousPage, MetaCell<bool> ? isAnimating, Axis? scrollDirection, bool? reverse, ScrollPhysics? physics, bool? pageSnapping, List<Widget> ? children, DragStartBehavior? dragStartBehavior, bool? allowImplicitScrolling, String? restorationId, Clip? clipBehavior, HitTestBehavior? hitTestBehavior, ScrollBehavior? scrollBehavior, bool? padEnds}) → LivePageView -
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< LivePageView> -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent 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 DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
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 ==(
Object other) → bool -
The equality operator.
inherited