Skip to content

[CP] Fix assertion when a WidgetSpan is scaled by certain textScaleFactor values #131004

Closed

Description

@LongCatIsLooong

Issue Link

#130588

Commit Hash

0d1cc33

Target

beta

PR Link

#130648

Changelog Description

Apps that use WidgetSpans in text widgets may throw an assertion when the text scale factor is set to certain values.

Impacted Users

WidgetSpan users

Impact Description

Apps that use WidgetSpans in text widgets may throw an assertion when the text scale factor is set to certain values, due to floating point precision.

Workaround

No easy workaround available

Risk

low

Test Coverage

yes

Validation Steps

Follow the repro steps in #130588, or run this test: https://github.com/flutter/flutter/pull/130648/files#diff-9fccc94ba0e90a5fb4c5b90761fe59995a5cf7bad0d580c6c2ff3cceafb495e5

Activity

  1. itsjustkevin commented on Jul 21, 2023

    @itsjustkevin
    Contributor

    Thanks again for the cherry-pick @LongCatIsLooong, it seems like there may have been an error in the changelog description, could you take a look?

    @HansMuller could you take a look at this cherry-pick request and attach the cp: approved label if you support this cherry-pick?

  2. added
    cp: merge-to-betaCherry-picks that should be merged to beta
    cp: mergedCherry-pick has been merged to the release branch.
    on Jul 25, 2023
  3. LongCatIsLooong commented on Aug 4, 2023

    @LongCatIsLooong
    ContributorAuthor

    Turns out I missed that in computeDryLayout and this commit needs to be added too: #131765. @XilaiZhang should I update the CP pull request to include that commit when it's merged, or that deserves its own CP request?

  4. XilaiZhang commented on Aug 4, 2023

    @XilaiZhang
    Contributor

    yeah it would need another cp request and cp approval. @itsjustkevin are we going to do another hotfix on 3.13.0 next week?

  5. tgucio commented on Aug 7, 2023

    @tgucio
    Contributor

    #131765 is now merged into main.

  6. CaseyHillers commented on Aug 14, 2023

    @CaseyHillers
    Contributor

    Shipped in 3.13.0-0.4.pre beta

  7. github-actions commented on Aug 28, 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.

  8. locked as resolved and limited conversation to collaborators on 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

cp: approvedApproved cherry-pick requestcp: merge-to-betaCherry-picks that should be merged to betacp: mergedCherry-pick has been merged to the release branch.cp: reviewCherry-picks in the review queue

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions