Slider class

A premium, interactive carousel slider widget.

Inheritance

Constructors

Slider({required List<View?> slides, String height = '480px', bool autoPlay = true, Duration autoPlayInterval = const Duration(seconds: 5), Duration transitionDuration = const Duration(milliseconds: 800), String? className, Map<String, Object?> props = const {}, Map<String, Object?> style = const {}, DartStyle? dartStyle})
Creates a slider.

Properties

autoPlay bool
Whether the slider cycles slides automatically.
final
autoPlayInterval Duration
The time interval between automated transitions.
final
hashCode int
The hash code for this object.
no setterinherited
height String
The height of the slider.
final
preserveState bool
Whether Flint should preserve this component instance across parent rerenders when the runtime type and tree position match.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
slides List<View?>
The list of slide views to cycle through.
final
transitionDuration Duration
The duration of the slide crossfade animation.
final

Methods

attach(void scheduleRender()) → void
Attaches the render scheduler used by setState.
inherited
build() View?
Builds this component's renderable output.
override
didMount() → void
Called after the component is first mounted in the browser.
override
didUpdate() → void
Called after the component updates following a rerender.
inherited
nextSlide() → void
Cycles to the next slide.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prevSlide() → void
Cycles to the previous slide.
selectSlide(int index) → void
Manually selects a slide.
setState(FlintStateUpdater update) → void
Applies update and schedules this component to render again.
inherited
toString() String
A string representation of this object.
inherited
updateFrom(covariant Slider next) → void
Receives the next component instance when Flint preserves this instance.
override
willUnmount() → void
Called before the component is removed from the tree.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited