-
Notifications
You must be signed in to change notification settings - Fork 30.3k
Request: Expose callback for when Drawer finishes closing #14510
Copy link
Copy link
Closed
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: animationAnimation APIsAnimation APIsc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Fluttercustomer: mulligan (g3)f: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: animationAnimation APIsAnimation APIsc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Fluttercustomer: mulligan (g3)f: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.
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:
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.