I am trying to create an app with a UI similar to Simplenote's. In the screenshot below, when the screenwidth > some value, the UI displays a ListView on the left and TextField on the right.:
If the icon on the left side of the TextField's appBar is clicked, the ListView closes:
How do I code this? I'm not asking about an app Drawer, I think. I've already coded that app so that with narrow screenwidths users are presented with the ListView, click an item, and then the TextField's view is pushed. And with wider screenwidths users are presented with the ListView and TextField both visible. I'd like users to be able to click the appBar icon (in a wider view) and dismiss the ListView.


You can achieve this using callbacks, I prepared a sample for you.
Result
Code: