DraggableCard constructor
DraggableCard({
- Widget? card,
- Widget? likeTag,
- Widget? nopeTag,
- Widget? superLikeTag,
- bool isDraggable = true,
- dynamic onSlideUpdate(
- double distance
- dynamic onSlideOutComplete(
- SlideDirection? direction
- SlideDirection? slideTo,
- dynamic onSlideRegionUpdate(
- SlideRegion? slideRegion
- bool upSwipeAllowed = false,
- bool leftSwipeAllowed = true,
- bool rightSwipeAllowed = true,
- bool isBackCard = false,
- EdgeInsets padding = EdgeInsets.zero,
Implementation
DraggableCard(
{this.card,
this.likeTag,
this.nopeTag,
this.superLikeTag,
this.isDraggable = true,
this.onSlideUpdate,
this.onSlideOutComplete,
this.slideTo,
this.onSlideRegionUpdate,
this.upSwipeAllowed = false,
this.leftSwipeAllowed = true,
this.rightSwipeAllowed = true,
this.isBackCard = false,
this.padding = EdgeInsets.zero});