appinioGmbH / flutter_packages

Dart and Flutter plugins/packages used and maintained by @appinioGmbH
187 stars 214 forks source link

add background angle effect #198

Closed offline-first closed 5 months ago

offline-first commented 9 months ago

Unfortunately, the rotation jumps to the last card after each swipe. But maybe you can still do something with it

caseycrogers commented 9 months ago

FWIW it's pretty easy to add logic like this yourself without changing the underlying package (well at least once #217 is merged).

You can apply your own rotations etc on the background card in the card builder by checking its index against the controller's current index and then scaling the transform by the card offset from the controller.

khanmujeeb687 commented 5 months ago

FWIW it's pretty easy to add logic like this yourself without changing the underlying package (well at least once #217 is merged).

You can apply your own rotations etc on the background card in the card builder by checking its index against the controller's current index and then scaling the transform by the card offset from the controller.

You are right, this can be implemented outside of this package. So, ignoring this PR and merging https://github.com/appinioGmbH/flutter_packages/pull/217