Skip to content

iOS Context Menus incorrectly moves to the center between screens #60334

Closed

Description

@YeungKC

The current context menu will always move to the center between the screens, so it is difficult to use it in lists or other places.

like:

context.menu.position.mov

Activity

  1. VladyslavBondarenko commented on Jun 26, 2020

    @VladyslavBondarenko

    Hi @YeungKC
    could you provide your flutter doctor -v, a minimal reproducible code sample how are you using it and describe desired result?

  2. added
    in triagePresently being triaged by the triage team
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Jun 26, 2020
  3. YeungKC commented on Jun 26, 2020

    @YeungKC
    MemberAuthor

    Hi @VladyslavBondarenko
    Sorry, this is not a bug, this component only supports only one effect, for example, I want the position to stay the same, or a bubble effect like iOS message.
    Like this, but the current component cannot support:

  4. justinmc commented on Jun 26, 2020

    @justinmc
    Contributor

    Oh I see, so the folder is at the same location on the screen before and after opening?

    @YeungKC Do you have an opinion on what the API would look like for that, or how Apple does it? Currently in Flutter I think it appears in the same quadrant of the screen that it was in originally.

  5. YeungKC commented on Jun 27, 2020

    @YeungKC
    MemberAuthor

    @justinmc
    Hi~
    Maybe more options should be added, such as targetPosition? More action widget display options, not limited to context menu action?

    I think it should be split more flexibly. I can still reuse some widget when the effects of the widget are not satisfied.

    In addition, I think this function can reuse components to #60298

  6. removed
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Jun 27, 2020
  7. added
    p: cupertino_uicupertino_ui package in flutter/packages
    frameworkflutter/packages/flutter repository. See also f: labels.
    and removed
    in triagePresently being triaged by the triage team
    on Jun 29, 2020
  8. flutter-triage-bot commented on Dec 23, 2024

    @flutter-triage-bot

    This issue is missing a priority label. Please set a priority label when adding the triaged-design label.

  9. added
    triaged-designTriaged by Design Languages team
    P2Important issues not at the top of the work list
    on Jan 8, 2025
  10. dkwingsmt commented on Jan 16, 2025

    @dkwingsmt
    Contributor

    The video in the issue body seems to have expired. :(

    Would you mind recording it again?

  11. changed the title [-]Improve iOS Context Menus[/-] [+]iOS Context Menus incorrectly moves to the center between screens[/+] on Jan 16, 2025
  12. self-assigned this
    on Jun 11, 2025
  13. victorsanni commented on Jun 16, 2025

    @victorsanni
    Contributor

    I've compared with the native context menu. It seems like the native context menu is centered only if the child has a preview different from itself (i.e when the context menu is active, a different widget/preview is displayed vs. when the context menu is inactive). If child == preview, the context menu opens and is positioned in-place. @YeungKC what do you think?

    EDIT: Even with a preview it still opens in place rather than at the center of the screen:

    Image
  14. github-actions commented on Jul 15, 2025

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  15. locked as resolved and limited conversation to collaborators on Jul 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listc: new featureNothing broken; request for a new capabilityframeworkflutter/packages/flutter repository. See also f: labels.p: cupertino_uicupertino_ui package in flutter/packagesteam-designOwned by Design Languages teamtriaged-designTriaged by Design Languages team

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions