NormalButton constructor
const
NormalButton({
- Key? key,
- required String text,
- Color backgroundColor = _BBackgroundColor,
- bool isEnable = true,
- VoidCallback? onTap,
- EdgeInsetsGeometry insertPadding = const EdgeInsets.symmetric(vertical: ButtonConstant.verticalPadding, horizontal: ButtonConstant.horizontalPadding),
- Decoration? decoration,
- Widget? child,
- TextStyle? textStyle,
- FontWeight fontWeight = _BFontWeight,
- double fontSize = _BFontSize,
- Color textColor = _BTextColor,
- Color? disableTextColor,
- Color disableBackgroundColor = _BDisableBackgroundColor,
- BoxConstraints constraints = const BoxConstraints.tightFor(),
- BorderRadiusGeometry borderRadius = const BorderRadius.all(Radius.circular(_BRadius)),
- Alignment? alignment,
Implementation
const NormalButton({
Key? key,
required this.text,
this.backgroundColor = _BBackgroundColor,
this.isEnable = true,
this.onTap,
this.insertPadding = const EdgeInsets.symmetric(
vertical: ButtonConstant.verticalPadding,
horizontal: ButtonConstant.horizontalPadding),
this.decoration,
this.child,
this.textStyle,
this.fontWeight = _BFontWeight,
this.fontSize = _BFontSize,
this.textColor = _BTextColor,
this.disableTextColor,
this.disableBackgroundColor = _BDisableBackgroundColor,
this.constraints = const BoxConstraints.tightFor(),
this.borderRadius = const BorderRadius.all(Radius.circular(_BRadius)),
this.alignment,
}) : super(key: key);