padding property

EdgeInsetsGeometry? padding
final

Padding of the button.

If null, defaults to:

 MediaQuery.of(context).size.width >= 650
   ? const EdgeInsets.symmetric(horizontal: 30, vertical: 10)
   : const EdgeInsets.symmetric(horizontal: 8, vertical: 10)

If you specify your own padding, it will NOT be responsive any more

  • unless you pass something like above.

Implementation

final EdgeInsetsGeometry? padding;