BrunoJurkovic/tcard

How to make it swipe by button not swiping by finger

Closed this issue · 2 comments

Hello,

Thanks for the awesome plugin, I appreciate your effort.

I want to ask, it's possible to implement the swiping by button click instead of using a finger.

Thanks for your feeback

You should create a controller and pass it to the tcard widget as an argument , then you can move the card by button click by calling tCardController.forward()/tCardController.back()

final TCardController tCardController = TCardController();

TCard( cards: [], controller: tCardController, );

Solved //