SwipeTutorial constructor
const
SwipeTutorial({
- Key? key,
- required Widget child,
- required String text,
- Widget? iconWidget,
- bool showTutorial = true,
- SwipeDirection swipeDirection = SwipeDirection.rightToLeft,
- AnimationController? animationController,
- Animation<
double> ? animation, - TextStyle textStyle = const TextStyle(fontSize: 18, fontWeight: FontWeight.w500, color: Colors.white),
- Color backgroundColor = Colors.black,
- double? animationBoxHeight,
- double? animationBoxWidth,
- Alignment tutorialWidgetAlignment = const Alignment(0.0, 0.0),
- 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),
});