-
Notifications
You must be signed in to change notification settings - Fork 30.2k
Description
Steps to Reproduce
I'm attempting to take a screenshot of the app to attach to a user-submitted feedback report. The "Send feedback" button for our app lives in the Material Drawer that slides out from the side of the main app Scaffold. But users typically aren't sending feedback about that Drawer, they are sending feedback about the view underneath the Drawer.
Here's my ideal behavior:
- Open Drawer
- Tap "Send Feedback" item
- Drawer-closing animation begins (still covering most of the underlying content)
- some time passes...
- Drawer animation ends (Drawer now gone, previous view exposed)
- Trigger screenshot and create feedback request
If you have an Android phone with the Gmail app, you can see how I envision this working. I couldn't find an iOS example that wasn't a screenshot of the drawer (Google Calendar screenshots the drawer).
I can't figure out the best way to know when the Drawer is hidden, currently my screenshots trigger immediately and just capture the Drawer.
A callback may not be the best solution, but was my naive first instinct. If there was a fancy way to "screenshot" the underlying widgets without waiting for the Drawer to hide, that'd be slick, but probably far more complex than necessary.