feat: Add OverlayManager.setActive()#3875
Conversation
Can be used to declarative describe the conditions for when an overlay should be visible.
|
I did take a look on the example for overlays, but you kinda either use toggle/add/remove or setActive(). There is one example of using it in my game elevate that is more natural in |
spydon
left a comment
There was a problem hiding this comment.
Code looks good, can we update the docs and add/modify an example to use it?
ufrshubham
left a comment
There was a problem hiding this comment.
LGTM! Thanks for adding this 🤘🏼
|
Sorry, just realized I got two white space changes in, should I undo those? |
Nah it's fine, it removed whitespace right? |
Yes exactly. I accidentally included removed whitespace during |
I've updated the docs which now exemplifies how isActive() and setActive() can be used. I have took a look at overlay_example.dart. It doesn't cover the toggle() or isAcitve() method and I wonder how much I should make it heavier to shoe horn in toggle(), isActive(), setActive() in the same example as currently using |
Yeah, I think this is probably fine as it is. |
Can be used to declarative describe the conditions for when an overlay should be visible.
Description
Adds
OverlayManager.setActive()which can be used to set active state of an overlay. This helps when you want to declarative describe the conditions for when a given overlay should be visible.For example like this:
instead of:
Checklist
docsand added dartdoc comments with///.examplesordocs.Breaking Change?
Related Issues
Closes #3853