NormalButton.outline constructor

NormalButton.outline({
  1. Key? key,
  2. Color? disableLineColor,
  3. Color? lineColor,
  4. double radius = 6,
  5. double borderWith = 1.0,
  6. required String text,
  7. bool isEnable = true,
  8. Color backgroundColor = _BBackgroundColor,
  9. Color disableBackgroundColor = _BDisableBackgroundColor,
  10. Alignment? alignment,
  11. Widget? child,
  12. VoidCallback? onTap,
  13. Color textColor = _BTextColor,
  14. FontWeight fontWeight = _BFontWeight,
  15. double fontSize = _BFontSize,
  16. Color? disableTextColor,
  17. EdgeInsetsGeometry insertPadding = const EdgeInsets.symmetric(vertical: ButtonConstant.verticalPadding, horizontal: ButtonConstant.horizontalPadding),
  18. TextStyle? textStyle,
  19. BoxConstraints constraints = const BoxConstraints.tightFor(),
  20. BorderRadiusGeometry borderRadius = const BorderRadius.all(Radius.circular(_BRadius)),
})

Implementation

NormalButton.outline({
  Key? key,
  Color? disableLineColor,
  Color? lineColor,
  double radius = 6,
  double borderWith = 1.0,
  required this.text,
  this.isEnable = true,
  this.backgroundColor = _BBackgroundColor,
  this.disableBackgroundColor = _BDisableBackgroundColor,
  this.alignment,
  this.child,
  this.onTap,
  this.textColor = _BTextColor,
  this.fontWeight = _BFontWeight,
  this.fontSize = _BFontSize,
  this.disableTextColor,
  this.insertPadding = const EdgeInsets.symmetric(
      vertical: ButtonConstant.verticalPadding,
      horizontal: ButtonConstant.horizontalPadding),
  this.textStyle,
  this.constraints = const BoxConstraints.tightFor(),
  this.borderRadius = const BorderRadius.all(Radius.circular(_BRadius)),
})  : decoration = _OutlineBoxDecorationCreator.createOutlineBoxDecoration(
          isEnable: isEnable,
          disableBackgroundColor: disableBackgroundColor,
          disableLineColor: disableLineColor,
          lineColor: lineColor,
          backgroundColor: backgroundColor,
          radius: radius,
          borderWith: borderWith),
      super(key: key);