Repository navigation
AnimationStyle curve and reverseCurve are not being used in showModalBottomSheet #174857
Copy link
Copy link
Closed
Closed
Copy link
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: animationAnimation APIsAnimation APIsfound in release: 3.35Found to occur in 3.35Found to occur in 3.35found in release: 3.36Found to occur in 3.36Found to occur in 3.36frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onp: material_uimaterial_ui package in flutter/packagesmaterial_ui package in flutter/packagesr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-designOwned by Design Languages teamOwned by Design Languages teamtriaged-designTriaged by Design Languages teamTriaged by Design Languages team
Description
Steps to reproduce
- run
showModalBottomSheetonTap
Expected results
Curves.elasticOut animation
Actual results
Curves.linear animation
Code sample
Code sample
showModalBottomSheet(
context: context,
sheetAnimationStyle: AnimationStyle(
curve: Curves.elasticOut,
duration: Duration(seconds: 2),
reverseCurve: Curves.elasticOut,
reverseDuration: Duration(seconds: 2),
),
);Screenshots or Video
No response
Logs
No response
Flutter Doctor output
Doctor output
[√] Flutter (Channel stable, 3.35.2, on Microsoft Windows [versÆo 10.0.26100.4946], locale pt-BR) [844ms]
• Flutter version 3.35.2 on channel stable at D:\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 05db968908 (8 days ago), 2025-08-25 10:21:35 -0700
• Engine revision a8bfdfc394
• Dart version 3.9.0
• DevTools version 2.48.0
• Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations, enable-lldb-debugging
[√] Windows Version (Windows 11 or higher, 24H2, 2009) [2,6s]
[√] Android toolchain - develop for Android devices (Android SDK version 36.0.0) [5,1s]
• Android SDK at C:\Users\lucas\AppData\Local\Android\sdk
• Emulator version 35.6.11.0 (build_id 13610412) (CL:N/A)
• Platform android-36, build-tools 36.0.0
• Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
This is the JDK bundled with the latest Android Studio installation on this machine.
To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
• Java version OpenJDK Runtime Environment (build 21.0.6+-13391695-b895.109)
• All Android licenses accepted.
[√] Chrome - develop for the web [537ms]
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.14.12) [536ms]
• Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
• Visual Studio Community 2022 version 17.14.36408.4
• Windows 10 SDK version 10.0.26100.0
[√] Android Studio (version 2025.1.1) [21ms]
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 21.0.6+-13391695-b895.109)
[√] VS Code (version 1.103.2) [18ms]
• VS Code at C:\Users\lucas\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.118.0
[√] Connected device (4 available) [631ms]
• SM M346B (mobile) • 192.168.1.171:46641 • android-arm64 • Android 15 (API 35)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [versÆo 10.0.26100.4946]
• Chrome (web) • chrome • web-javascript • Google Chrome 138.0.7204.184
• Edge (web) • edge • web-javascript • Microsoft Edge 139.0.3405.125
[√] Network resources [1.125ms]
• All expected network resources are available.
• No issues found!Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: animationAnimation APIsAnimation APIsfound in release: 3.35Found to occur in 3.35Found to occur in 3.35found in release: 3.36Found to occur in 3.36Found to occur in 3.36frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onp: material_uimaterial_ui package in flutter/packagesmaterial_ui package in flutter/packagesr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-designOwned by Design Languages teamOwned by Design Languages teamtriaged-designTriaged by Design Languages teamTriaged by Design Languages team
Activity
tirth-patel-nc commentedon Sep 3, 2025
@LuDColl thanks for the report.
@ksokolovskyi taken a look at the source and only the duration parameters of AnimationStyle are used. As you can see docs mention that only the duration and reverse duration will be used. It is a bug.
#38958, #145704, #145536 (cc @bleroux) might be related.
Use AnimationStyle curve and reverseCurve in ModalBottomSheet animati…
Use AnimationStyle curve and reverseCurve in ModalBottomSheet animati…
github-actions commentedon Mar 11, 2026
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.Use AnimationStyle curve and reverseCurve in ModalBottomSheet animati…
Use AnimationStyle curve and reverseCurve in ModalBottomSheet animati…
Use AnimationStyle curve and reverseCurve in ModalBottomSheet animati…