NormalButton constructor

const NormalButton({
  1. Key? key,
  2. required String text,
  3. Color backgroundColor = _BBackgroundColor,
  4. bool isEnable = true,
  5. VoidCallback? onTap,
  6. EdgeInsetsGeometry insertPadding = const EdgeInsets.symmetric(vertical: ButtonConstant.verticalPadding, horizontal: ButtonConstant.horizontalPadding),
  7. Decoration? decoration,
  8. Widget? child,
  9. TextStyle? textStyle,
  10. FontWeight fontWeight = _BFontWeight,
  11. double fontSize = _BFontSize,
  12. Color textColor = _BTextColor,
  13. Color? disableTextColor,
  14. Color disableBackgroundColor = _BDisableBackgroundColor,
  15. BoxConstraints constraints = const BoxConstraints.tightFor(),
  16. BorderRadiusGeometry borderRadius = const BorderRadius.all(Radius.circular(_BRadius)),
  17. 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);