ArrowPageIndicator class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- ArrowPageIndicator
Constructors
-
ArrowPageIndicator({Key? key, required PageController pageController, required ValueNotifier<
int> currentPageNotifier, required int itemCount, required Widget child, Widget? rightIcon, Widget? leftIcon, Color? iconColor, EdgeInsetsGeometry iconPadding = defaultPadding, int duration = defaultDuration, Curve curve = defaultCurve, bool isJump = false, bool isInside = false, double iconSize = defaultIconSize, String? tooltipLeft, String? tooltipRight}) -
const
Properties
- child → Widget
-
The PageView that is used with this indicator
It has the same pageController and
Notifies indicator with currentPageNotifier
final
-
currentPageNotifier
→ ValueNotifier<
int> -
The current page index ValueNotifier
child should notify when onPageChanged is triggered.
final
- curve → Curve
-
The curve of page transition
Used if isJump is set to false
final
- duration → int
-
The duration of page transition
Used if isJump is set to false
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- iconColor → Color?
-
The color of default right and left Icon
final
- iconPadding → EdgeInsetsGeometry
-
The padding of default right and left Icon
final
- iconSize → double
-
The size of default right and left Icon
final
- isInside → bool
-
If set to
True
, left and right arrows is on the child Otherwise child is placed between them.final - isJump → bool
-
If set to
True
, page transition happens without animation. Otherwise, page transition happens with animation specified with duration and curvefinal - itemCount → int
-
The number of items managed by the PageController
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- leftIcon → Widget?
-
The custom left icon widget
Could be a Icon, Text or Image. Go crazy.
final
- pageController → PageController
-
PageController of the child to control pages and transition.
final
- rightIcon → Widget?
-
The custom right icon widget
Could be a Icon, Text or Image. Go crazy.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tooltipLeft → String?
-
Semantic label for default left Icon
final
- tooltipRight → String?
-
Semantic label for default right Icon
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → ArrowPageIndicatorState -
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
Constants
- defaultCurve → const Cubic
- defaultDuration → const int
- defaultIconSize → const double
- defaultPadding → const EdgeInsets