You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was having the same issue and i figured out that you have to wrap the widget that call open() method with a builder exactly like he did.
Wrong : IconButton(
icon: Icon(Icons.menu),
onPressed: () {
CustomDrawer.of(context).open();
},
Correct: Builder(
builder: (context) {
return IconButton(
icon: Icon(Icons.menu),
onPressed: () => CustomDrawer.of(context).open(),
);
},
),
Hey!
First of all, thank you for the examples they are really neat, nice job!
But I have a question... How would you use this as an animation between pages?
I have a hard time to implement this, because whenever I change the page, I get an error:
pointing to this line:
CustomDrawer.of(context).open()
So..., how would you use the animation in between page changes?
The text was updated successfully, but these errors were encountered: