Skip to content

VisibilityDetector does not consider other widgets in a Stack #440

Open
@globemediaofficial

Description

@globemediaofficial

Problem description

This is an issue with all versions of the visibility_detector package. I have a Stack with 3 layers; ListView, FloatingTabBar, and FloatingAppBar. Each item in the ListView is wrapped in a VisibilityDetector that checks for visibleFraction == 1. This works but it says visibleFraction == 1 even when the other Stack items partially cover the widget.

Expected behavior

There should be an option for the visibleFraction to factor in widgets covering it.

Actual behavior

Widgets will still show visibleFraction == 1 even if they are covered by other widgets.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions