actionsPadding property

EdgeInsetsGeometry? actionsPadding
final

Padding around the set of actions at the bottom of the modal.

Typically used to provide padding to the button bar between the button bar and the edges of the modal.

If there are no actions, then no padding will be included. It is also important to note that buttonPadding may contribute to the padding on the edges of actions as well.

{@tool snippet} This is an example of a set of actions aligned with the content widget.

GiffyModal(
  giffy: Image.asset('assets/giffy_modal.gif'),
  title: const Text('Title'),
  content: Container(width: 200, height: 200, color: Colors.green),
  actions: <Widget>[
    ElevatedButton(onPressed: () {}, child: const Text('Button 1')),
    ElevatedButton(onPressed: () {}, child: const Text('Button 2')),
  ],
  actionsPadding: const EdgeInsets.symmetric(horizontal: 8.0),
)

{@end-tool}

See also:

Implementation

final EdgeInsetsGeometry? actionsPadding;