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

Build Context issue #6

Open
SavvyEngineer opened this issue Oct 8, 2021 · 1 comment
Open

Build Context issue #6

SavvyEngineer opened this issue Oct 8, 2021 · 1 comment

Comments

@SavvyEngineer
Copy link

hi first of all thanks for your amazing job I'm currently using a splash screen as my home: and navigating from there to my homepage and I'm using a custom app bar class so I'm getting null pointer error because my home: is my splash screen I managed to set my home: to my main home page and send the context to app bar class for drawer opening but this means that I have to lose my splashScreen and I cant use this drawer in my other screens as well any suggestion sorry for taking your time thanks

@mohitdawrani
Copy link

I had the same issue, I resolve this issue using this.

use -> scaffoldKey.currentState.context instead of context
pass globalkey to the custom app bar
SlideDrawer.of(scaffoldKey.currentState!.context)!.toggle();

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