Skip to content

[material_ui] SnackBarThemeData.lerp drops showCloseIcon #195390

Closed
flutter/packages
#13449

Description

@ChandraChaan

Steps to reproduce

const a = SnackBarThemeData(showCloseIcon: true);
final lerped = SnackBarThemeData.lerp(a, a.copyWith(elevation: 4), 0.5);
print(lerped.showCloseIcon); // null

Expected results

showCloseIcon is true, like every other non-lerpable field in SnackBarThemeData.lerp (such as behavior and dismissDirection), which take a's value below t = 0.5 and b's value above it.

Actual results

showCloseIcon is always null, because SnackBarThemeData.lerp never passes it to the constructor.

ThemeData.lerp calls this method, so during an AnimatedTheme transition, such as switching between light and dark mode, a snack bar shown mid-animation loses the close icon its theme asked for.

Package version

material_ui 1.8.0 (main as of today)

Activity

  1. saurabh-mirajkar commented on Oct 27, 2026

    @saurabh-mirajkar
    Contributor

    @ChandraChaan Thanks for the report. Labelling for team-design to investigate further.

  2. added
    p: material_uimaterial_ui package in flutter/packages
    packageflutter/packages repository. See also p: labels.
    team-designOwned by Design Languages team
    and removed
    in triagePresently being triaged by the triage team
    on Oct 27, 2026
  3. added
    P2Important issues not at the top of the work list
    triaged-designTriaged by Design Languages team
    on Nov 3, 2026
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 listp: material_uimaterial_ui package in flutter/packagespackageflutter/packages repository. See also p: labels.team-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