NormalButton.outline constructor
NormalButton.outline({
- Key? key,
- Color? disableLineColor,
- Color? lineColor,
- double radius = 6,
- double borderWith = 1.0,
- required String text,
- bool isEnable = true,
- Color backgroundColor = _BBackgroundColor,
- Color disableBackgroundColor = _BDisableBackgroundColor,
- Alignment? alignment,
- Widget? child,
- VoidCallback? onTap,
- Color textColor = _BTextColor,
- FontWeight fontWeight = _BFontWeight,
- double fontSize = _BFontSize,
- Color? disableTextColor,
- EdgeInsetsGeometry insertPadding = const EdgeInsets.symmetric(vertical: ButtonConstant.verticalPadding, horizontal: ButtonConstant.horizontalPadding),
- TextStyle? textStyle,
- BoxConstraints constraints = const BoxConstraints.tightFor(),
- 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);