padding property

EdgeInsets? padding
final

Space between the text and the chip edge. Defaults to EdgeInsets.symmetric(vertical: 1) — no horizontal padding, so the chip hugs the code and the surrounding words keep their normal spacing.

Horizontal padding, when set, is applied to the outer edges of a wrapped run only — a chip continuing onto the next line is not padded at the break, so the two halves read as one run.

Implementation

final EdgeInsets? padding;