Create Navigator component
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
Navigatorand have differentGameWidgets 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.
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!