CellPageView 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
- CellPageView
- Annotations
-
- @Deprecated("Use widgets from live_cells_ui library.")
Constructors
-
CellPageView({Key? key, required MutableCell<
int> page, ValueCell<bool> ? animate, ValueCell<Duration> ? duration, ValueCell<Curve> ? curve, ValueCell<void> ? nextPage, ValueCell<void> ? previousPage, MetaCell<bool> ? isAnimating, ValueCell<Axis> scrollDirection = const ValueCell.value(Axis.horizontal), ValueCell<bool> reverse = const ValueCell.value(false), ValueCell<ScrollPhysics?> ? physics, ValueCell<bool> pageSnapping = const ValueCell.value(true), ValueCell<List< children = const ValueCell.value(const <Widget>[]), ValueCell<Widget> >DragStartBehavior> dragStartBehavior = const ValueCell.value(DragStartBehavior.start), ValueCell<bool> allowImplicitScrolling = const ValueCell.value(false), ValueCell<String?> ? restorationId, ValueCell<Clip> clipBehavior = const ValueCell.value(Clip.hardEdge), ValueCell<HitTestBehavior> hitTestBehavior = const ValueCell.value(HitTestBehavior.opaque), ValueCell<ScrollBehavior?> ? scrollBehavior, ValueCell<bool> padEnds = const ValueCell.value(true)}) -
const
Properties
-
allowImplicitScrolling
→ ValueCell<
bool> -
final
-
animate
→ ValueCell<
bool> ? -
Should the transition between pages be animated?
final
-
children
→ ValueCell<
List< Widget> > -
final
-
clipBehavior
→ ValueCell<
Clip> -
final
-
curve
→ ValueCell<
Curve> ? -
Curve function to use for page transition animations.
final
-
dragStartBehavior
→ ValueCell<
DragStartBehavior> -
final
-
duration
→ ValueCell<
Duration> ? -
Duration of the page transition animation.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
hitTestBehavior
→ ValueCell<
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
→ ValueCell<
bool> -
final
-
page
→ MutableCell<
int> -
Cell holding the selected page index.
final
-
pageSnapping
→ ValueCell<
bool> -
final
-
physics
→ ValueCell<
ScrollPhysics?> ? -
final
-
previousPage
→ ValueCell<
void> ? -
Action cell which triggers a transition to the previous page.
final
-
restorationId
→ ValueCell<
String?> ? -
final
-
reverse
→ ValueCell<
bool> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
scrollBehavior
→ ValueCell<
ScrollBehavior?> ? -
final
-
scrollDirection
→ ValueCell<
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, ValueCell<Axis> ? scrollDirection, ValueCell<bool> ? reverse, ValueCell<ScrollPhysics?> ? physics, ValueCell<bool> ? pageSnapping, ValueCell<List< ? children, ValueCell<Widget> >DragStartBehavior> ? dragStartBehavior, ValueCell<bool> ? allowImplicitScrolling, ValueCell<String?> ? restorationId, ValueCell<Clip> ? clipBehavior, ValueCell<HitTestBehavior> ? hitTestBehavior, ValueCell<ScrollBehavior?> ? scrollBehavior, ValueCell<bool> ? padEnds}) → CellPageView -
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< CellPageView> -
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, int wrapWidth = 65}) → 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