HorizontalListView class

Inheritance

Constructors

HorizontalListView({required double height, required double width, required List<Widget> list, double itemWidth = 300, Icon? iconPrevious, Icon? iconNext, dynamic onChanged(int index)?, VoidCallback? onNextPressed, VoidCallback? onPreviousPressed, Duration durationAnimation = const Duration(milliseconds: 500), Curve curveAnimation = Curves.ease, bool enableManualScroll = true, bool isStartedFromEnd = false, Key? key})
const

Properties

curveAnimation → Curve
Curve to animation when click on button next or previous. Default is Curves.ease
final
durationAnimation → Duration
Duration of animation when click on button next or previous. Default is 500 milliseconds.
final
enableManualScroll → bool
If true, enable manual scroll, if false disable manual scroll and can only be scrolled by iconNext and iconPrevious.
final
hashCode → int
The hash code for this object.
no setterinherited
height → double
Height of widget
final
iconNext → Icon?
Icon to show in next button
final
iconPrevious → Icon?
Icon to show in next button
final
isStartedFromEnd → bool
Start from end of list
final
itemWidth → double
Item width.
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
list → List<Widget>
List of widget to populate horizontal scroll.
final
onChanged → dynamic Function(int index)?
On click listener when index changed; NOTE: Only will work with enableManualScroll false.
final
onNextPressed → VoidCallback?
On click listener when next button was clicked.
final
onPreviousPressed → VoidCallback?
On click listener when previous button was clicked.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
width → double
Width of widget
final

Methods

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