appinioGmbH / flutter_packages

Dart and Flutter plugins/packages used and maintained by @appinioGmbH
193 stars 224 forks source link

[Feature] : appinio_swiper background card angle #187

Closed offline-first closed 6 months ago

offline-first commented 11 months ago

Plugin name Appinio Swiper

Is your feature request related to a problem? Please describe. No

Describe the solution you'd like Can the background cards have an option to get a random angle?

Example:

AppinioSwiper(
   backgroundCardOffset: const Offset(0, 30),
   backgroundCardScale: .95,
   backgroundCardRotationList: [-3, 2, -1], // <-- new property
)
....
 Transform.rotate(
   angle: widget.backgroundCardRotationList[index%widget.backgroundCardRotationList.length].degreeToAngle(), 
   child: ...

btw, nice lib 👍

khanmujeeb687 commented 11 months ago

Hey @offline-first , It seems amazing, Since you already have a solution. You can just create a PR and I will try to merge it and release with the next version.

offline-first commented 11 months ago

Hello @khanmujeeb687 here is my PR #198