Reputation: 86
I'm trying to create a web app that only renders one page, and the other pages (or views) are rendered when you press a button related to that specific view. Like the Flutter Gallery website, when you click on a widget info in the "Categories" section
Is there any workaround for this or do I have to create my own router?
Upvotes: 1
Views: 970
Reputation: 4233
you can keep all widgets on one page package by creating a switch statement in your build page. switch between different widget when rendering the scaffolding.
Upvotes: 1