Skip to content

Flow and Opacity don't play well together with hit testing #6100

Description

@abarth

The Flow widget does a bunch of interesting work during paint. If the Flow widget is inside an Opacity widget with opacity of 0.0, then the Flow will never get to paint. That confuses the hit testing logic for Flow, which assumes that the data generated during paint is available and up-to-date.

Activity

  1. added
    frameworkflutter/packages/flutter repository. See also f: labels.
    on Sep 27, 2016
  2. modified the milestone: on Nov 29, 2016
  3. esarbanis commented on Feb 26, 2019

    @esarbanis
    Contributor

    There is a merged PR for this. Is it still relevant?

  4. zoechi commented on Feb 26, 2019

    @zoechi
    Contributor

    @esarbanis This issue is mentioned as remaining work in the discussion
    but fixes #6089.

  5. esarbanis commented on Feb 26, 2019

    @esarbanis
    Contributor

    Thanks @zoechi!

    I will give it a try then 😊

  6. goderbauer commented on Feb 27, 2019

    @goderbauer
    Member

    @esarbanis Do you have a use case why you need to hit test something invisible?

  7. modified the milestones: , on Jan 7, 2020
  8. added
    P3Issues that are less important to the Flutter project
    on May 29, 2020
  9. modified the milestone: on Jun 1, 2020
  10. 18 remaining items

  11. Hixie commented on Jul 25, 2023

    @Hixie
    Contributor

    We took too long to fix this, and now people just assume that opacity=0 won't stop hit testing, so there's not really a fix here. I attempted to add documentation instead.

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

  13. locked as resolved and limited conversation to collaborators on Aug 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P3Issues that are less important to the Flutter projectfound in release: 3.10Found to occur in 3.10found in release: 3.12Found to occur in 3.12frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onr: fixedIssue is closed as already fixed in a newer versionteam-frameworkOwned by Framework teamtriaged-frameworkTriaged by Framework team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions