TCard
A tinder like cards flutter plugin, can slide it's children left or right. You can use it to show some images, videos and so on.
Install
Uasge
Normal widget
Network image
Use a controller to control
Determine the sliding direction
Reset width new cards
Property
property | type | default | description | required |
---|---|---|---|---|
cards | List<Widget> |
null |
Render cards | true |
size | Size |
null |
Card size | false |
controller | TCardController |
null |
Card controller | false |
onForward | ForwardCallback |
null |
Forward animation callback | false |
onBack | BackCallback |
null |
Back animation callback | false |
onEnd | EndCallback |
null |
Forward end callback | false |
lockYAxis | bool |
false |
Lock Y Axis Gesture | false |
slideSpeed | double |
20 |
How quick should it be slided? less is slower. 10 is a bit slow. 20 is a quick enough. | false |
delaySlideFor | int |
500 |
How long does it have to wait until the next slide is sliable? less is quicker. 100 is fast enough. 500 is a bit slow. | false |