Skip to content

GestureDetector inside CupertinoContextMenu may trigger if the touch is released before CupertinoContextMenu completes transition #70716

@newdev8

Description

@newdev8

Steps to Reproduce

  1. Insert a CupertinoContextMenu.
  2. Insert a GestureDetector inside of it.
  3. Hold down the CupertinoContextMenu until it makes the shrink animation and let go of the tap.

Expected results:
One of them should be triggered.

Actual results:
As seen on #52226, both of them are triggered at the same time.

Logs

Not applicable.

Analyzing app_name...                                               
No issues found! (ran in 4.3s)
[✓] Flutter (Channel stable, 1.22.4, on macOS 11.0.1 20B29 darwin-x64, locale es-ES)
    • Flutter version 1.22.4 at /Users/carlosat/Desarrollador/flutter
    • Framework revision 1aafb3a8b9 (4 days ago), 2020-11-13 09:59:28 -0800
    • Engine revision 2c956a31c0
    • Dart version 2.10.4

 
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/carlosat/Library/Android/sdk
    • Platform android-30, build-tools 30.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.2, Build version 12B5044c
    • CocoaPods version 1.10.0

[!] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[✓] Connected device (1 available)
    • sdk gphone x86 arm (mobile) • emulator-5554 • android-x86 • Android 11 (API 30) (emulator)
    ! Error: Apple TV is not paired with your computer. To use Apple TV with Xcode, unlock it and choose to trust this computer when prompted. (code -9)

! Doctor found issues in 1 category.

(By the way, the plugins are installed, I don't know why it keeps telling me they're not).

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: qualityA truly polished experiencef: cupertinoflutter/packages/flutter/cupertino repositoryf: gesturesflutter/packages/flutter/gestures repository.found in release: 3.3Found to occur in 3.3found in release: 3.7Found to occur in 3.7frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onteam-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