SwipeScreenLayout constructor
const
SwipeScreenLayout({
- Key? key,
- String title = 'Find your partner',
- Widget? bellIcon,
- Widget? backIcon,
- VoidCallback? onBackPressed,
- required List<
SwipeCardData> cardDataList, - SwipeActionIcons? actionIcons,
- Color likeButtonColor = const Color(0xFFFF5069),
- Color dislikeButtonColor = Colors.white,
- Color superlikeButtonColor = const Color(0xFFFFB431),
- double likeButtonSize = 80,
- double dislikeButtonSize = 60,
- double superlikeButtonSize = 60,
- double? cardWidth,
- bool isLoop = false,
Implementation
const SwipeScreenLayout(
{super.key,
this.title = 'Find your partner',
this.bellIcon,
this.backIcon,
this.onBackPressed,
required this.cardDataList,
this.actionIcons,
this.likeButtonColor = const Color(0xFFFF5069),
this.dislikeButtonColor = Colors.white,
this.superlikeButtonColor = const Color(0xFFFFB431),
this.likeButtonSize = 80,
this.dislikeButtonSize = 60,
this.superlikeButtonSize = 60,
this.cardWidth,
this.isLoop = false});