How to close Scaffold's drawer after an item tap?

Issue

After I tap an item in the Scaffold’s drawer I want it to automatically hide itself. How do I do it in Flutter?

Solution

Navigator.pop() will pop the Drawer route off the stack and cause it to close.

Answered By – Collin Jackson

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published