Skip to content

Request: Expose callback for when Drawer finishes closing #14510

@brianwilliams42

Description

@brianwilliams42

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: animationAnimation APIsc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Fluttercustomer: mulligan (g3)f: material designflutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions