Skip to content

Bug in ListTileThemeData.copyWith() introduced in https://github.com/flutter/flutter/pull/117965 #119734

Description

@math1man

#117965 introduced a bug in ListTileThemeData.copyWith().

The code has these lines

titleTextStyle: titleTextStyle ?? this.titleTextStyle,
subtitleTextStyle: titleTextStyle ?? this.subtitleTextStyle,
leadingAndTrailingTextStyle: titleTextStyle ?? this.leadingAndTrailingTextStyle,

Note that titleTextStyle is assigned to each value. The correct code should be

titleTextStyle: titleTextStyle ?? this.titleTextStyle,
subtitleTextStyle: subtitleTextStyle ?? this.subtitleTextStyle,
leadingAndTrailingTextStyle: leadingAndTrailingTextStyle ?? this.leadingAndTrailingTextStyle,

Activity

  1. self-assigned this
    on Feb 1, 2023
  2. added
    frameworkflutter/packages/flutter repository. See also f: labels.
    p: material_uimaterial_ui package in flutter/packages
    on Feb 1, 2023
  3. moved this from To do to PR submitted in Nevercodeon Feb 1, 2023
  4. moved this from PR submitted to Done (PR merged) in Nevercodeon Feb 1, 2023
  5. added
    r: fixedIssue is closed as already fixed in a newer version
    on Feb 1, 2023
  6. github-actions commented on Mar 3, 2023

    @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 3, 2023
  8. moved this from Done (PR merged) to In progress in Nevercodeon Aug 28, 2023
  9. moved this from In progress to Done (PR merged) in Nevercodeon Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

c: regressionIt was better in the past than it is nowcustomer: googleVarious Google teamsframeworkflutter/packages/flutter repository. See also f: labels.p: material_uimaterial_ui package in flutter/packagesr: fixedIssue is closed as already fixed in a newer version

Type

No type

Projects

  • Status
    Done (PR merged)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions