Skip to content

How to put a widget over another #998

Answered by tarkah
snylonue asked this question in Q&A
Discussion options

You must be logged in to vote

The best place to point you for now is to look at how the PickList is implemented. If a Widget returns an (Overlay), that will rendered over everything else.

It's important to note that currently Iced only supports having a single Overlay up at one time, and an Overlay can't nest over another Overlay. However, you can definitely build something very complex if you're just adding normal elements to the Overlay.

You can also check out https://github.com/iced-rs/iced_aw. A bunch of additional widgets have been created there, such as a Modal, that use Overlay.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@DavidBJaffe
Comment options

@yusdacra
Comment options

Answer selected by snylonue
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants