Skip to content

Underlay? #120

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
makoConstruct opened this issue May 19, 2025 · 1 comment
Open

Underlay? #120

makoConstruct opened this issue May 19, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@makoConstruct
Copy link

It's fairly common for apps to want to place a visual indicator underneath the selected widget (and its siblings) rather than over it. Two examples are shown here flutter/flutter#166792

Describe the solution you'd like
I think the right api would be

Portal(
  underlay: true,
  child: ...,
)

Where underlay places the portalFollowers behind child instead of over it.

Describe alternatives you've considered
It's not quite addressed by #45 , since this only seems to support controlling which ancestor the portal projects into, and any ancestor will render over the follower widget. But it does depend on 45, since it's going to be common for a user to want both an underlay portal and an overlay portal and need to be able to choose between them.


If there are obstacles to implementing this, I'd be curious to hear them, as it's relevant to flutter/flutter#166792

@makoConstruct makoConstruct added the enhancement New feature or request label May 19, 2025
@fzyzcjy
Copy link
Owner

fzyzcjy commented May 19, 2025

Looks interesting, feel free to PR for this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants