contentPadding property

EdgeInsetsGeometry? contentPadding
final

Padding around the content.

If there is no content, no padding will be provided. Otherwise, this padding is used.

This property defaults to providing a padding of 20 pixels above the content to separate the content from the title, and 24 pixels on the left, right, and bottom to separate the content from the other edges of the dialog.

If ThemeData.useMaterial3 is true, the top padding separating the content from the title defaults to 16 pixels instead of 20 pixels.

Implementation

final EdgeInsetsGeometry? contentPadding;