Skip to content

AnimationStyle curve and reverseCurve are not being used in showModalBottomSheet #174857

Closed

Description

@LuDColl

Steps to reproduce

  1. run showModalBottomSheet onTap

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!

Activity

  1. tirth-patel-nc commented on Sep 3, 2025

    @tirth-patel-nc
    Member

    @LuDColl thanks for the report.

      /// Used to override the modal bottom sheet animation duration and reverse
      /// animation duration.
      ///
      /// If [AnimationStyle.duration] is provided, it will be used to override
      /// the modal bottom sheet animation duration in the underlying
      /// [BottomSheet.createAnimationController].
      ///
      /// If [AnimationStyle.reverseDuration] is provided, it will be used to
      /// override the modal bottom sheet reverse animation duration in the
      /// underlying [BottomSheet.createAnimationController].
      ///
      /// To disable the modal bottom sheet animation, use [AnimationStyle.noAnimation].
      final AnimationStyle? sheetAnimationStyle;

    @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.

  2. added
    has reproducible stepsThe issue has been confirmed reproducible and is ready to work on
    frameworkflutter/packages/flutter repository. See also f: labels.
    p: material_uimaterial_ui package in flutter/packages
    team-designOwned by Design Languages team
    and removed
    in triagePresently being triaged by the triage team
    has reproducible stepsThe issue has been confirmed reproducible and is ready to work on
    on Sep 3, 2025
  3. added
    P2Important issues not at the top of the work list
    triaged-designTriaged by Design Languages team
    on Sep 3, 2025
  4. added a commit that references this issue on Feb 25, 2026
    d6adb6d
  5. added a commit that references this issue on Feb 27, 2026
    9f830b1
  6. github-actions commented on Mar 11, 2026

    @github-actions

    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 -v and a minimal reproduction of the issue.

  7. locked as resolved and limited conversation to collaborators on Mar 11, 2026
  8. added a commit that references this issue on Mar 26, 2026
    3c706f6
  9. added a commit that references this issue on Jun 12, 2026
    2d5853d
  10. added a commit that references this issue on Sep 28, 2026
    13f7056
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: animationAnimation APIsfound in release: 3.35Found to occur in 3.35found in release: 3.36Found to occur in 3.36frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onp: material_uimaterial_ui package in flutter/packagesr: fixedIssue is closed as already fixed in a newer versionteam-designOwned by Design Languages teamtriaged-designTriaged by Design Languages team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions