How to hide drawer in flutter after changing Scaffold.body value

Posted by Jennifer | Updated on

In this example, I will share how to hide drawer in flutter after changing Scaffold.body value. Are you using exactly Navigator.of(context).pop()? I cannot reproduce your problem, can you post a minimal example to reproduce it?

The following code works as expected: the settings button pops away the drawer, while the other don’t.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers