TestPaddedButton constructor

const TestPaddedButton({
  1. Key? key,
  2. required String text,
  3. required VoidCallback onPressed,
  4. Color? backgroundColor,
  5. Color? overlayColor,
  6. TextStyle? textStyle,
  7. Color? textColor,
  8. FontWeight? textFontWeight,
  9. double? fontSize,
  10. double? borderRadius,
  11. EdgeInsetsGeometry? padding,
  12. Widget? leadingIcon,
  13. Widget? trailingIcon,
  14. MainAxisSize? mainAxisSize,
  15. double? elevation,
  16. BorderSide? borderSide,
  17. Size? minimumSize,
  18. Size? fixedSize,
  19. Size? maximumSize,
  20. bool fullWidth = true,
  21. double horizontalPadding = 16.0,
})

Implementation

const TestPaddedButton({
  super.key,
  required this.text,
  required this.onPressed,
  this.backgroundColor,
  this.overlayColor,
  this.textStyle,
  this.textColor,
  this.textFontWeight,
  this.fontSize,
  this.borderRadius,
  this.padding,
  this.leadingIcon,
  this.trailingIcon,
  this.mainAxisSize,
  this.elevation,
  this.borderSide,
  this.minimumSize,
  this.fixedSize,
  this.maximumSize,
  this.fullWidth = true,
  this.horizontalPadding = 16.0,
});