AppButton constructor

const AppButton({
  1. Key? key,
  2. String title = "",
  3. Color? backgroundColor,
  4. Color? textColor,
  5. double fontSize = 16,
  6. FontWeight fontWeight = FontWeight.w500,
  7. double radius = 10,
  8. double minWidth = double.infinity,
  9. double height = 48,
  10. VoidCallback? onPressed,
  11. Widget? icon,
  12. IconData? fontAwesomeIcon,
  13. double iconSize = 20,
  14. Color borderColor = AppColors.transparent,
  15. MainAxisAlignment mainAxisAlignment = MainAxisAlignment.center,
  16. bool horizontalGradient = true,
  17. bool gradient = false,
  18. bool shadow = false,
  19. bool isLoading = false,
  20. Widget? loadingIndicator,
})

Implementation

const AppButton({
  super.key,
  this.title = "",
  this.backgroundColor,
  this.textColor,
  this.fontSize = 16,
  this.fontWeight = FontWeight.w500,
  this.radius = 10,
  this.minWidth = double.infinity,
  this.height = 48,
  this.onPressed,
  this.icon,
  this.fontAwesomeIcon,
  this.iconSize = 20,
  this.borderColor = AppColors.transparent,
  this.mainAxisAlignment = MainAxisAlignment.center,
  this.horizontalGradient = true,
  this.gradient = false,
  this.shadow = false,
  this.isLoading = false,
  this.loadingIndicator,
});