suffixIcon property

Widget suffixIcon
final

An icon that that appears after the input and suffixText and within the decoration's container.

The size and color of the suffix icon is configured automatically using an IconTheme and therefore does not need to be explicitly given in the icon widget.

The suffix icon is constrained with a minimum size of 48px by 48px, but can be expanded beyond that. Anything larger than 24px will require additional padding to ensure it matches the material spec of 12px padding between the right edge of the input and trailing edge of the prefix icon. To pad the trailing edge of the suffix icon:

suffixIcon: Padding(
  padding: const EdgeInsetsDirectional.only(end: 12.0),
  child: myIcon, // icon is 48px widget.
)

The decoration's container is the area which is filled if isFilled is true and bordered per the border. It's the area adjacent to decoration.icon and above the widgets that contain helperText, errorText, and counterText.

See Icon, ImageIcon.

Implementation

final Widget suffixIcon