TransformerPageView class

Inheritance

Constructors

TransformerPageView({Key? key, int? index, Duration? duration, Curve curve = Curves.ease, double viewportFraction = 1.0, bool loop = false, Axis scrollDirection = Axis.horizontal, ScrollPhysics? physics, bool pageSnapping = true, ValueChanged<int?>? onPageChanged, IndexController? controller, PageTransformer? transformer, IndexedWidgetBuilder? itemBuilder, TransformerPageController? pageController, required int itemCount})
Creates a scrollable list that works page by page using widgets that are created on demand.
TransformerPageView.children({Key? key, int? index, Duration? duration, Curve curve = Curves.ease, double viewportFraction = 1.0, bool loop = false, Axis scrollDirection = Axis.horizontal, ScrollPhysics? physics, bool pageSnapping = true, ValueChanged<int?>? onPageChanged, IndexController? controller, PageTransformer? transformer, required List<Widget> children, TransformerPageController? pageController})
factory

Properties

controller IndexController?
final
curve Curve
Animation curve
final
duration Duration
Animation duration
final
hashCode int
The hash code for this object.
no setterinherited
index int?
If not set, it is controlled by this widget.
final
itemBuilder IndexedWidgetBuilder?
final
itemCount int
This value is only valid when pageController is not set,
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
loop bool
Set true to open infinity loop mode.
final
onPageChanged ValueChanged<int?>?
Called whenever the page in the center of the viewport changes. Same as PageView.onPageChanged
final
pageController TransformerPageController?
final
pageSnapping bool
Set to false to disable page snapping, useful for custom scroll behavior. Same as PageView.pageSnapping
final
physics ScrollPhysics?
Same as PageView.physics
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollDirection Axis
Same as PageView.scrollDirection
final
transformer PageTransformer?
Create a transformed widget base on the widget that has been passed to the PageTransformer.transform. See TransformInfo
final
viewportFraction double
This value is only valid when pageController is not set,
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<StatefulWidget>
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

Static Methods

createPageController({required bool reverse, required int index, required int itemCount, required bool loop, required double viewportFraction}) PageController
getRealIndexFromRenderIndex({required bool reverse, required int index, required int itemCount, required bool loop}) int?