SwipeScreenLayout constructor

const SwipeScreenLayout({
  1. Key? key,
  2. String title = 'Find your partner',
  3. Widget? bellIcon,
  4. Widget? backIcon,
  5. VoidCallback? onBackPressed,
  6. required List<SwipeCardData> cardDataList,
  7. SwipeActionIcons? actionIcons,
  8. Color likeButtonColor = const Color(0xFFFF5069),
  9. Color dislikeButtonColor = Colors.white,
  10. Color superlikeButtonColor = const Color(0xFFFFB431),
  11. double likeButtonSize = 80,
  12. double dislikeButtonSize = 60,
  13. double superlikeButtonSize = 60,
  14. double? cardWidth,
  15. 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});