StackBannersOptions class

Constructors

StackBannersOptions({double? height, double aspectRatio = 16 / 9, bool loop = false, bool autoPlay = false, Duration autoPlayInterval = const Duration(seconds: 4), Curve autoPlayCurve = Curves.fastOutSlowIn, Axis scrollDirection = Axis.horizontal, Alignment alignment = Alignment.centerLeft, Curve curve = Curves.fastOutSlowIn, EdgeInsetsGeometry padding = const EdgeInsets.all(16), double borderRadius = 24.0, StackBannersStyle style = StackBannersStyle.style1, Duration itemAnimationDuration = const Duration(milliseconds: 400), Clip clipBehavior = Clip.hardEdge})

Properties

alignment Alignment
alignment of the banners Alignment.topCenter | Alignment.bottomCenter | Alignment.centerLeft | Alignment.centerRight are supported. Defaults to Alignment.centerLeft.
final
aspectRatio double
Aspect ratio is used if no height have been declared.
final
autoPlay bool
final
autoPlayCurve Curve
Determines the animation curve physics.
final
autoPlayInterval Duration
Sets Duration to determent the frequency of slides when
final
borderRadius double
if style is StackBannersStyle.style1, this is the border radius if style is StackBannersStyle.style2, this is the max border radius animated border radius will be calculated based on this value
final
clipBehavior Clip
final
curve Curve
final
hashCode int
The hash code for this object.
no setterinherited
height double?
Set carousel height and overrides any existing aspectRatio.
final
itemAnimationDuration Duration
work only if style is StackBannersStyle.style2
final
loop bool
final
padding EdgeInsetsGeometry
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollDirection Axis
final
style StackBannersStyle
final

Methods

copyWith({double? height, double? aspectRatio, bool? loop, Duration? autoPlayInterval, Duration? autoPlayAnimationDuration, Curve? autoPlayCurve, Axis? scrollDirection, Alignment? alignment, bool? autoPlay, Curve? curve, EdgeInsetsGeometry? padding, double? borderRadius, StackBannersStyle? style, Duration? itemAnimationDuration, Clip? clipBehavior}) StackBannersOptions
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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