padding property
The padding of the button, based on size class
Implementation
EdgeInsets get padding {
switch (this) {
case xxs:
return const EdgeInsets.all(0);
case xs:
return const EdgeInsets.symmetric(vertical: 4, horizontal: 8);
case small:
return const EdgeInsets.symmetric(vertical: 16, horizontal: 20);
case medium:
return const EdgeInsets.symmetric(vertical: 18, horizontal: 32);
case large:
return const EdgeInsets.symmetric(vertical: 20, horizontal: 40);
case xl:
return const EdgeInsets.symmetric(vertical: 22, horizontal: 52);
}
}