dooboolab-community/flutter_calendar_carousel

How to change the horizontal swipe animation ?

Nico3652 opened this issue · 0 comments

As you can see in the screen record when I drop the page slowly in middle it will be stuck between both.
This is like the snap effect only works with a higher velocity on drop.

The code used in the screen is your code sample with version 2.4.2

Simulator.Screen.Recording.-.iPhone.14.Pro.Max.-.2023-02-28.at.19.15.00.mp4

Questions :

  • How to change the horizontal swipe animation ? I would like to use the classic PageView animation. I tried to change the pageScrollPhysics param but nothing changed.

  • Possible to trigger the swipe animation by tapping on the arrow header ? For now it's like no animation at all.
    would be great to have a controller and animate it on click like the PageController for PageView :

controller.animateToPage(currentIndex + 1,
          duration: const Duration(milliseconds: 250), curve: Curves.linear);

FLUTTER DOCTOR

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.7.5, on macOS 13.2.1 22D68 darwin-x64, locale fr-FR)                                                                                                                                                    Checking Android licenses is taking an unexpectedly long time...[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
[✓] Chrome - develop for the web
[!] Android Studio (version 2022.1)
    ✗ Unable to find bundled Java version.
[✓] VS Code (version 1.74.0)
[✓] Connected device (3 available)
[✓] HTTP Host Availability

! Doctor found issues in 1 category.