padding property
final
The amount of padding to apply to the snack bar's content and optional action.
If this property is null, the default padding values are as follows:
- content
- Top and bottom paddings are 14.
- Left padding is 24 if behavior is SnackBarBehavior.fixed, 16 if behavior is SnackBarBehavior.floating.
- Right padding is same as start padding if there is no action, otherwise 0.
- action
- Top and bottom paddings are 14.
- Left and right paddings are half of content's left padding.
If this property is not null, the padding is as follows:
- content
- Left, top and bottom paddings are assigned normally.
- Right padding is assigned normally if there is no action, otherwise 0.
- action
- Left padding is replaced with half the right padding.
- Top and bottom paddings are assigned normally.
- Right padding is replaced with one and a half times the right padding.
Implementation
final EdgeInsetsGeometry? padding;