Skip to content
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

Change the scaffold when an item is selected #24

Closed
istornz opened this issue Jan 27, 2020 · 2 comments
Closed

Change the scaffold when an item is selected #24

istornz opened this issue Jan 27, 2020 · 2 comments

Comments

@istornz
Copy link

istornz commented Jan 27, 2020

Hello !
First thanks for this awesome package !
I have an application which use inner_drawer like this:

  • A home scaffold
  • A right child, which is the main menu off my app.
    When the user open the right menu and choose an item, I would like to close the menu AND change the main scaffold using the statefull widget corresponding in the menu.
    The only problem I have, is how to change the main scaffold ?

I have an idea to create a "Router Page" assigned to the main scaffold and change the returned Widget according, is it the good philosophy concerning this package ?

Thanks for the answer :)
Have a nice day !

@istornz
Copy link
Author

istornz commented Jan 29, 2020

I achieved what I wanted.
Maybe it can help:
I created a Router Page which embedded a BlocBuilder Widget :)

@istornz istornz closed this as completed Jan 29, 2020
@Dn-a
Copy link
Owner

Dn-a commented Jan 29, 2020

@istornz the solutions adopted for the drawer can also be adopted for innerDrawer. BlocBuilder is a great choice :)

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

No branches or pull requests

2 participants