M3ECarouselView.builder constructor
const
M3ECarouselView.builder({
- Key? key,
- EdgeInsets? padding,
- Color? backgroundColor,
- double? elevation,
- ShapeBorder? shape,
- Clip? itemClipBehavior,
- WidgetStateProperty<
Color?> ? overlayColor, - bool itemSnapping = false,
- double shrinkExtent = 0.0,
- M3ECarouselController? controller,
- Axis scrollDirection = Axis.horizontal,
- bool reverse = false,
- ValueChanged<
int> ? onTap, - M3EHapticFeedback haptic = M3EHapticFeedback.none,
- bool enableSplash = true,
- required double itemExtent,
- required NullableIndexedWidgetBuilder? itemBuilder,
- int? itemCount,
- ValueChanged<
int> ? onIndexChanged, - bool infinite = false,
- ScrollPhysics? physics,
Creates a scrollable carousel with fixed-sized items created on demand.
Implementation
const M3ECarouselView.builder({
super.key,
this.padding,
this.backgroundColor,
this.elevation,
this.shape,
this.itemClipBehavior,
this.overlayColor,
this.itemSnapping = false,
this.shrinkExtent = 0.0,
this.controller,
this.scrollDirection = Axis.horizontal,
this.reverse = false,
this.onTap,
this.haptic = M3EHapticFeedback.none,
this.enableSplash = true,
required double this.itemExtent,
required this.itemBuilder,
this.itemCount,
this.onIndexChanged,
this.infinite = false,
this.physics,
}) : consumeMaxWeight = true,
flexWeights = null,
children = const <Widget>[];