AdButtonView constructor
AdButtonView({
- EdgeInsets? padding,
- EdgeInsets? margin,
- double? width,
- double? height,
- AdDecoration? decoration,
- double? elevation,
- Color? elevationColor,
- Color? pressColor,
- int? minLines,
- int? maxLines,
- TextStyle? textStyle,
- String? text,
Implementation
AdButtonView({
EdgeInsets? padding,
EdgeInsets? margin,
double? width,
double? height,
AdDecoration? decoration,
double? elevation,
Color? elevationColor,
this.pressColor,
// text
int? minLines,
int? maxLines,
TextStyle? textStyle,
String? text,
}) : super(
viewType: 'button_view',
padding: padding,
margin: margin,
decoration: decoration,
width: width ?? MATCH_PARENT,
height: height ?? WRAP_CONTENT,
elevation: elevation,
elevationColor: elevationColor,
// text
maxLines: maxLines,
minLines: minLines,
style: textStyle ??
TextStyle(
fontSize: 14,
color: Colors.black,
// fontWeight: FontWeight.bold,
),
text: text,
);