-
-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
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
Request for adding a function: determining the start of card movement #27
Comments
@wfgm5k2d Did you find any solution? |
yes, found it, thanks
сб, 10 февр. 2024 г., 17:28 Ekta Padaliya ***@***.***>:
… @wfgm5k2d <https://github.com/wfgm5k2d> Did you find any solution?
I'm finding a way to tell that animation start.
—
Reply to this email directly, view it on GitHub
<#27 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALSMI3IAFVUTZ7TGIJS5TQ3YS5DTFAVCNFSM6AAAAABAXNDBGSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZWHE3DKNJWG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@wfgm5k2d can you please share your solution? Thanks |
Certainly. You already have coordinates that are transferred to the builder.
body: CardSwiper(
controller: cardSwiperController,
onSwipe: _onSwipe,
onUndo: _onUndo,
onSwipeDirectionChange: _onSwipeDirectionChange,
cardsCount: users.length,
cardBuilder: (context, index, *percentThresholdX*,
*percentThresholdY*) => UserCardWidget(
externalController: cardSwiperController,
user: users[index], // Индекс в массиве пользователей
*percentThresholdX: percentThresholdX**,*
*percentThresholdY: percentThresholdY**,*
),
scale: 0.9,
padding: EdgeInsets.symmetric(horizontal: 16, vertical: 0),
),
сб, 15 июн. 2024 г. в 10:43, Awais Abbas ***@***.***>:
… @wfgm5k2d <https://github.com/wfgm5k2d> can you please share your
solution? Thanks
—
Reply to this email directly, view it on GitHub
<#27 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALSMI3L6V77VQ4CQ7U5YJXDZHPWB5AVCNFSM6AAAAABJLPKLNGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRZGE4DKNBTGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@wfgm5k2d Thank you for your quick reply i solved this by following your approach, much appreciated |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello! I really like your package flutter_card_swiper, it almost meets my needs. I would like to know how I can get the card offset coordinate? I'll take a picture. The onSwipe event shows the final direction after moving the card, as does the onSwipeDirectionChange event. I would like to be able to determine the beginning of the movement and the direction, perhaps get the X and Y coordinates. It is important for me to know the moment the movement begins, the direction in which direction the movement is carried out and the end of the movement when the card is flipped. Please tell me, is it possible to somehow find out this now or is there such functionality in the plans?
The text was updated successfully, but these errors were encountered: