padding property

EdgeInsetsGeometry? padding
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:

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;