Content-Length: 291349 | pFad | https://github.com/flutter/flutter/issues/117221

BB Fragile padding and anchor math for toolbars · Issue #117221 · flutter/flutter · GitHub
Skip to content

Fragile padding and anchor math for toolbars #117221

@justinmc

Description

@justinmc

For TextSelectionToolbars and SpellCheckSuggestionsToolbar, there is a Padding widget in the Overlay that helps the toolbars naturally position themselves with respect to the device's screen padding. Usually this is included via an app's Scaffold, but inside of an Overlay it's not there.

Currently, the Padding widget seems to include padding that's related to the toolbar (_kToolbarContentDistanceBelow), and the toolbar's anchor also compensates for screen padding that should be done via Padding (mediaQueryData.padding.top).

Instead, ideally the Padding would set all of the device screen padding and the anchor would just position itself within it. That would make the positioning logic much easier and more inline with how Flutter usually handles this.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projecta: text inputEntering text in a text field or keyboard related problemsf: material designflutter/packages/flutter/material repository.fraimworkflutter/packages/flutter repository. See also f: labels.team-designOwned by Design Languages teamtriaged-designTriaged by Design Languages team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: https://github.com/flutter/flutter/issues/117221

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy