Skip to content

Create layout component similar to IndexedStack #3496

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
1 task done
mabdelaal86 opened this issue Feb 14, 2025 · 1 comment
Open
1 task done

Create layout component similar to IndexedStack #3496

mabdelaal86 opened this issue Feb 14, 2025 · 1 comment

Comments

@mabdelaal86
Copy link
Contributor

Problem to solve

I have a use-case where I want to show/hide some components, which can be done by add/remove them to the tree as described here.
I can be nicer to have a layout component that can show one of its child components and hide the rest, somehow similar to IndexedStack layout component in Flutter.

Proposal

Create a layout component similar to IndexedStack in Flutter that support show/hide child components.

More information

I have implemented it in my project here. It can be adapted to flame engine with some generalization.

Other

  • Are you interested in working on a PR for this?
@spydon
Copy link
Member

spydon commented Apr 15, 2025

Sorry for the late reply, could you expand a bit more on the use-cases this could have in a Flame game?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants