-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projecta: desktopRunning on desktopRunning on desktopc: 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 Flutterf: 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.r: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer version
Description
InkWell is great. I like the opt-in hover effect. Right now InkWell doesn't have onSecondaryTap exposed. It has onLongPress, which is only useful on mobile. It would be weird to ask users to long press with mouse left button instead of using the onSecondaryTap on desktop to trigger a context menu.
flutter/packages/flutter/lib/src/material/ink_well.dart
Lines 1236 to 1244 in cc7845e
| onTapDown: enabled ? handleTapDown : null, | |
| onTapUp: enabled ? handleTapUp : null, | |
| onTap: enabled ? handleTap : null, | |
| onTapCancel: enabled ? handleTapCancel : null, | |
| onDoubleTap: widget.onDoubleTap != null ? handleDoubleTap : null, | |
| onLongPress: widget.onLongPress != null ? handleLongPress : null, | |
| behavior: HitTestBehavior.opaque, | |
| excludeFromSemantics: true, | |
| child: widget.child, |
Metadata
Metadata
Assignees
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projecta: desktopRunning on desktopRunning on desktopc: 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 Flutterf: 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.r: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer version