highlightShape property

BoxShape highlightShape
final

The shape (e.g., circle, rectangle) to use for the highlight drawn around this part of the material when pressed, hovered over, or focused.

The same shape is used for the pressed highlight (see highlightColor), the focus highlight (see focusColor), and the hover highlight (see hoverColor).

If the shape is BoxShape.circle, then the highlight is centered on the InkResponse. If the shape is BoxShape.rectangle, then the highlight fills the InkResponse, or the rectangle provided by getRectCallback if the callback is specified.

See also:

  • containedInkWell, which controls clipping behavior.
  • borderRadius, which controls the corners when the box is a rectangle.
  • highlightColor, the color of the highlight.
  • getRectCallback, which controls the size and position of the box when it is a rectangle.

Implementation

final BoxShape highlightShape;