pad method
Implementation
ElevatedButton pad({double size = 8.0}) {
return ElevatedButton(
style: ElevatedButton.styleFrom(
backgroundColor: ClassColors.mtPrimary_5,
padding: const EdgeInsets.all(8),
shape:
RoundedRectangleBorder(borderRadius: BorderRadius.circular(5))),
onPressed: onPressed,
child: Padding(
padding: EdgeInsets.all(size),
child: child,
),
);
}