@@ -1310,23 +1310,26 @@ class _InkResponseState extends State<_InkResponseStateWidget>
13101310 cursor: effectiveMouseCursor,
13111311 onEnter: handleMouseEnter,
13121312 onExit: handleMouseExit,
1313- child: Semantics (
1314- onTap: widget.excludeFromSemantics || widget.onTap == null ? null : simulateTap,
1315- onLongPress: widget.excludeFromSemantics || widget.onLongPress == null ? null : simulateLongPress,
1316- child: GestureDetector (
1317- onTapDown: _primaryEnabled ? handleTapDown : null ,
1318- onTapUp: _primaryEnabled ? handleTapUp : null ,
1319- onTap: _primaryEnabled ? handleTap : null ,
1320- onTapCancel: _primaryEnabled ? handleTapCancel : null ,
1321- onDoubleTap: widget.onDoubleTap != null ? handleDoubleTap : null ,
1322- onLongPress: widget.onLongPress != null ? handleLongPress : null ,
1323- onSecondaryTapDown: _secondaryEnabled ? handleSecondaryTapDown : null ,
1324- onSecondaryTapUp: _secondaryEnabled ? handleSecondaryTapUp: null ,
1325- onSecondaryTap: _secondaryEnabled ? handleSecondaryTap : null ,
1326- onSecondaryTapCancel: _secondaryEnabled ? handleSecondaryTapCancel : null ,
1327- behavior: HitTestBehavior .opaque,
1328- excludeFromSemantics: true ,
1329- child: widget.child,
1313+ child: DefaultSelectionStyle .merge (
1314+ mouseCursor: effectiveMouseCursor,
1315+ child: Semantics (
1316+ onTap: widget.excludeFromSemantics || widget.onTap == null ? null : simulateTap,
1317+ onLongPress: widget.excludeFromSemantics || widget.onLongPress == null ? null : simulateLongPress,
1318+ child: GestureDetector (
1319+ onTapDown: _primaryEnabled ? handleTapDown : null ,
1320+ onTapUp: _primaryEnabled ? handleTapUp : null ,
1321+ onTap: _primaryEnabled ? handleTap : null ,
1322+ onTapCancel: _primaryEnabled ? handleTapCancel : null ,
1323+ onDoubleTap: widget.onDoubleTap != null ? handleDoubleTap : null ,
1324+ onLongPress: widget.onLongPress != null ? handleLongPress : null ,
1325+ onSecondaryTapDown: _secondaryEnabled ? handleSecondaryTapDown : null ,
1326+ onSecondaryTapUp: _secondaryEnabled ? handleSecondaryTapUp: null ,
1327+ onSecondaryTap: _secondaryEnabled ? handleSecondaryTap : null ,
1328+ onSecondaryTapCancel: _secondaryEnabled ? handleSecondaryTapCancel : null ,
1329+ behavior: HitTestBehavior .opaque,
1330+ excludeFromSemantics: true ,
1331+ child: widget.child,
1332+ ),
13301333 ),
13311334 ),
13321335 ),
0 commit comments