AppButton constructor
const
AppButton({
- Key? key,
- String title = "",
- Color? backgroundColor,
- Color? textColor,
- double fontSize = 16,
- FontWeight fontWeight = FontWeight.w500,
- double radius = 10,
- double minWidth = double.infinity,
- double height = 48,
- VoidCallback? onPressed,
- Widget? icon,
- IconData? fontAwesomeIcon,
- double iconSize = 20,
- Color borderColor = AppColors.transparent,
- MainAxisAlignment mainAxisAlignment = MainAxisAlignment.center,
- bool horizontalGradient = true,
- bool gradient = false,
- bool shadow = false,
- bool isLoading = false,
- 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,
});