This extension adds a beautiful Card Stack Widget. The Widget enables you to create a stack of three cards that can be animated to move to the next card infinetly. The widget is designed in a way that three MDCards
get reused infinetly to give the impression of an infinte stack of cards. You can add your own widgets to the front most card.
- KivyMD >= 0.104.1
- Kivy >= 2.0.0 (Installation)
- Python 3.6+
Radius
: Accepts a list and sets the radius of all cards in the stackfirst_color
: Accepts a list and sets the color for the front most card(Defaults toprimary_light_color
of theme class)second_color
: Accepts a list and sets the color for the middle card(Defaults toprimary_color
of theme class)third_color
: Accepts a list and sets the color for the last card(Defaults toprimary_dark
of theme class)current_card
: Returns the front most card object. This can be used to add widgets to the front most card. The value is returned before the animation starts to allow the user to load new widgets before they are seen and thus make the transition fluent.transition
: Accepts a string and sets the transition interpolation type to use for animations.card_out_direction
: The Direction the fron tmost cards exists the screen. The availbale options aredown
,up
,left
andright
. This property defaults todown
card_in_direction
: The direction in which the new card comes in on the screen. The available options areside
,bottom
andtop
. This property defaults toside
elevation
: The elevation of the front most card. This property defaults to0
Check the example.py
on how to use this Kivy Widget