We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
please guide me through this I'm stuck with this
The text was updated successfully, but these errors were encountered:
If you mean whether a swipe is like or not like, this is handled using the likeAction / nopeAction callback functions when you create the SwipeItems
Sorry, something went wrong.
Yeah just follow the example provided.
for (int i = 0; i < _names.length; i++) { _swipeItems.add(SwipeItem( content: Content(text: _names[i], color: _colors[i]), likeAction: () { ScaffoldMessenger.of(context).showSnackBar(SnackBar( content: Text("Liked ${_names[i]}"), duration: Duration(milliseconds: 500), )); }, nopeAction: () { ScaffoldMessenger.of(context).showSnackBar(SnackBar( content: Text("Nope ${_names[i]}"), duration: Duration(milliseconds: 500), )); }, superlikeAction: () { ScaffoldMessenger.of(context).showSnackBar(SnackBar( content: Text("Superliked ${_names[i]}"), duration: Duration(milliseconds: 500), )); }, onSlideUpdate: (SlideRegion? region) async { print("Region $region"); })); } _matchEngine = MatchEngine(swipeItems: _swipeItems); super.initState(); }
No branches or pull requests
please guide me through this I'm stuck with this
The text was updated successfully, but these errors were encountered: