SwipeTutorial constructor

const SwipeTutorial({
  1. Key? key,
  2. required Widget child,
  3. required String text,
  4. Widget? iconWidget,
  5. bool showTutorial = true,
  6. SwipeDirection swipeDirection = SwipeDirection.rightToLeft,
  7. AnimationController? animationController,
  8. Animation<double>? animation,
  9. TextStyle textStyle = const TextStyle(fontSize: 18, fontWeight: FontWeight.w500, color: Colors.white),
  10. Color backgroundColor = Colors.black,
  11. double? animationBoxHeight,
  12. double? animationBoxWidth,
  13. Alignment tutorialWidgetAlignment = const Alignment(0.0, 0.0),
  14. EdgeInsetsGeometry padding = const EdgeInsets.all(16),
})

Implementation

const SwipeTutorial({
  super.key,
  required this.child,
  required this.text,
  this.iconWidget,
  this.showTutorial = true,
  this.swipeDirection = SwipeDirection.rightToLeft,
  this.animationController,
  this.animation,
  this.textStyle = const TextStyle(
    fontSize: 18,
    fontWeight: FontWeight.w500,
    color: Colors.white,
  ),
  this.backgroundColor = Colors.black,
  this.animationBoxHeight,
  this.animationBoxWidth,
  this.tutorialWidgetAlignment = const Alignment(0.0, 0.0),
  this.padding = const EdgeInsets.all(16),
});