-
Notifications
You must be signed in to change notification settings - Fork 30.1k
Closed
Labels
a: mouseIssues related to using a mouse or mouse supportIssues related to using a mouse or mouse supporta: platform-viewsEmbedding Android/iOS views in Flutter appsEmbedding Android/iOS views in Flutter appsframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.
Description
When a PlatformView is placed on top of another widget, say a button, the button won't receive hover events:
Stack(children: <Widget>[
RaisedButton(
onPressed() {
print('onPressed'); // Taps are handled correctly.
},
child: Text('Hover or click'),
),
Positioned.fill(child: MyPlatformView(...)),
])Setting the hitTestBehavior of the PlatformView to PlatformViewHitTestBehavior.transparent didn't help.
Taps and other gestures are received by the button correctly. Hover is the only one that the button isn't receiving.
cc @dkwingsmt
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
a: mouseIssues related to using a mouse or mouse supportIssues related to using a mouse or mouse supporta: platform-viewsEmbedding Android/iOS views in Flutter appsEmbedding Android/iOS views in Flutter appsframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.