An infinite card switching UI for Flutter, support custom animation 可自定义动效的卡片切换视图（中文文档）

Android version #

https://github.com/BakerJQ/Android-InfiniteCards

Android iOS

cd ./example flutter create . flutter run

How to use #

Add dependencies #

dependencies: infinite_cards: ^1.0.3

Build controller in initState #

@override void initState() { super.initState(); _controller = InfiniteCardsController( itemBuilder: _renderItem, itemCount: 5, animType: AnimType.SWITCH, ); }

Build widget with controller #

InfiniteCards( controller: _controller, )

Call methods from controller #

_controller.previous(); _controller.next(); _controller.reset(...);

Animation transform and curve #

Default

If you just use all default animations, just do nothing.

Customisation

InfiniteCardsController( ... transformToFront: yourCustomTransformToFront, transformToBack: yourCustomTransformToBack, curve: yourCustomCurve ... )

InfiniteCards is released under the Apache 2.0 license.