LedgerCarousel class

Slides turned one at a time (this month's highlights, a goal's milestones): each slide in the slip's small corners, height tall at the standard text size and growing with the reader's, a swipe, the arrow keys or the ringed arrows at its foot turning it in Ledger's one motion, and the page dots between the arrows saying where it stands (each a press to that slide). viewportFraction under 1 shows a sliver of its neighbours. A screen reader hears it as semanticLabel and each slide as its place of the count.

LedgerCarousel(semanticLabel: 'Highlights', itemCount: 3, itemBuilder: (context, i) => Text('Slide $i'))
Inheritance

Constructors

LedgerCarousel({required int itemCount, required IndexedWidgetBuilder itemBuilder, required String semanticLabel, double height = 180, double viewportFraction = 1, ValueChanged<int>? onPageChanged, Key? key})
itemCount slides itemBuilder builds.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
height → double
The slides' height.
final
itemBuilder → IndexedWidgetBuilder
Builds slide index.
final
itemCount → int
How many slides.
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onPageChanged → ValueChanged<int>?
Called as the slide shown changes.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
semanticLabel → String
What a screen reader calls it.
final
viewportFraction → double
Each slide's share of the width.
final

Methods

build(BuildContext context) → Widget
Describes the part of the user interface represented by this widget.
override
createElement() → StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
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