Skip to content
New issue

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

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

Already on GitHub? # to your account

Create Navigator component #1375

Closed
st-pasha opened this issue Feb 16, 2022 · 1 comment · Fixed by #1755
Closed

Create Navigator component #1375

st-pasha opened this issue Feb 16, 2022 · 1 comment · Fixed by #1755
Assignees

Comments

@st-pasha
Copy link
Contributor

A NavigatorComponent would fulfill the similar role that Flutter's Navigator widget does: it would facilitate switching between multiple independent screens.

A typical game is comprised of multiple UI screens: the start page, the settings page, the level selector page, the world page, the character inventory page, the help page, etc. The NavigatorComponent's job will be to help move from one such page to another.

This is a common functionality that is needed in pretty much every game. So how do games solve this right now?

  • Some games simply remove the old page and mount the new one. This works if the page loading times are negligible, otherwise there will be a gap with no top-level component present.
  • Use Flutter's Navigator and have different GameWidgets for each game page. This works, but it's not very efficient as it requires that each page is loaded anew on every page switch.
@spydon
Copy link
Member

spydon commented Feb 16, 2022

Haven't heard anyone that have had a problem with the two current options you presented, but I think this will make it a nicer experience for the user none the less!

@st-pasha st-pasha self-assigned this Jun 30, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants