BaseButton constructor
const
BaseButton({
- Key? key,
- String? text,
- TextAlign textAlign = TextAlign.center,
- double textFontSize = 16,
- double? textLetterSpacing,
- double? width,
- double? height,
- Border? border,
- BorderRadius? borderRadius,
- EdgeInsetsGeometry? padding,
- MainAxisAlignment mainAxisAlignment = MainAxisAlignment.center,
- Color? textColor,
- Color? borderColor,
- Color? backgroundColor,
- Color? hoverTextColor,
- Color? hoverBorderColor,
- Color? hoverBackgroundColor,
- Color? activeTextColor,
- Color? activeBorderColor,
- Color? activeBackgroundColor,
- bool isLoading = false,
- bool isActive = false,
- Widget? child,
- Widget builder({})?,
- void onPressed()?,
Implementation
const BaseButton({
super.key,
// general
this.text,
this.textAlign = TextAlign.center,
this.textFontSize = 16,
this.textLetterSpacing,
// appearance
this.width,
this.height,
this.border,
this.borderRadius,
this.padding,
this.mainAxisAlignment = MainAxisAlignment.center,
// colors
this.textColor,
this.borderColor,
this.backgroundColor,
this.hoverTextColor,
this.hoverBorderColor,
this.hoverBackgroundColor,
this.activeTextColor,
this.activeBorderColor,
this.activeBackgroundColor,
// predicates
this.isLoading = false,
this.isActive = false,
// methods
this.child,
this.builder,
this.onPressed,
});