GTFSwipe constructor
const
GTFSwipe({
- Key? key,
- Axis scrollDirection = Axis.horizontal,
- bool reverse = false,
- PageController? controller,
- ScrollPhysics? physics,
- bool pageSnapping = true,
- void onPageChanged()?,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- List<
Widget> banners = const <Widget>[], - bool allowImplicitScrolling = false,
- String? restorationId,
- Clip clipBehavior = Clip.hardEdge,
- ScrollBehavior? scrollBehavior,
- dynamic onTap(
- String id
- double height = 108,
- double width = double.maxFinite,
- double borderRadius = 0,
- Color backgroundColor = GTFColor.transparent,
- EdgeInsets? padding = EdgeInsets.zero,
Implementation
const GTFSwipe({
Key? key,
this.scrollDirection = Axis.horizontal,
this.reverse = false,
this.controller,
this.physics,
this.pageSnapping = true,
this.onPageChanged,
this.dragStartBehavior = DragStartBehavior.start,
this.banners = const <Widget>[],
this.allowImplicitScrolling = false,
this.restorationId,
this.clipBehavior = Clip.hardEdge,
this.scrollBehavior,
this.onTap,
this.height = 108,
this.width = double.maxFinite,
this.borderRadius = 0,
this.backgroundColor = GTFColor.transparent,
this.padding = EdgeInsets.zero,
}) : super(key: key);