MinimalPageDots class
Which of a few pages a carousel or an onboarding run stands on: a dot
for each, the current one drawn long in the ink, the rest small on the
control edge's ink (3:1 on the ground) — a capsule role, so the dots
follow shapes.pill. The
current dot grows into place in MinimalMotion.base.
With onChanged the dots are one control, as iOS's page control is: a tap before the current dot goes back a page, a tap after it on a page, the arrow keys step it, and a screen reader adjusts it (swipe up or down). The dots are too small to tap one by one; the control is laid out at the tap floor round them.
MinimalPageDots(count: 4, selectedIndex: page, onChanged: controller.jumpToPage)
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- MinimalPageDots
Constructors
-
MinimalPageDots({Key? key, required int count, required int selectedIndex, ValueChanged<
int> ? onChanged, double? position}) -
A dot for each of
countpages.const
Properties
- count → int
-
How many pages there are.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
onChanged
→ ValueChanged<
int> ? -
Reports the page the control steps to; null leaves the dots still.
final
- position → double?
-
Where the pages are while they move, in pages (1.5 is half way from the
second to the third; past the last it runs on toward the first), so the
long dot travels with a swipe instead of jumping when it ends. Null: the
dots ease to selectedIndex when it changes.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedIndex → int
-
The current page, from 0.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< MinimalPageDots> -
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.
override
-
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