dooboolab-community / flutter_calendar_carousel

Calendar widget for flutter that is swipeable horizontally. This widget can help you build your own calendar widget highly customizable.
MIT License
837 stars 307 forks source link

How to change the horizontal swipe animation ? #322

Closed Nico3652 closed 1 year ago

Nico3652 commented 1 year ago

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

https://user-images.githubusercontent.com/50270977/221943403-739a6209-ea74-42b8-bd3e-fb404d744cd6.mp4

Questions :

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.