ButtonWidget constructor
const
ButtonWidget(
- String? iconText,
- TextStyle textStyle, {
- Key? key,
- Widget? iconData,
- Widget? leftIconData,
- double iconPadding = 0,
- double leftIconPadding = 0,
- VoidCallback? onPressed,
- double textWidth = -1,
- MainAxisAlignment mainAxisAlignment = MainAxisAlignment.center,
- MainAxisSize mainAxisSize = MainAxisSize.max,
- CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
- EdgeInsetsGeometry? padding,
- ShapeBorder? shape,
- required Color color,
- Color? colorAlpha,
- double height = 0,
- bool right = false,
- bool row = true,
- bool disabledBg = false,
- TextAlign textAlign = TextAlign.start,
- bool textExpanded = false,
- int maxLines = 1,
Implementation
const ButtonWidget(this.iconText, this.textStyle,
{Key? key,
this.iconData,
this.leftIconData,
this.iconPadding = 0,
this.leftIconPadding = 0,
this.onPressed,
this.textWidth = -1,
this.mainAxisAlignment = MainAxisAlignment.center,
this.mainAxisSize = MainAxisSize.max,
this.crossAxisAlignment = CrossAxisAlignment.center,
this.padding,
this.shape,
required this.color,
this.colorAlpha,
this.height = 0,
this.right = false,
this.row = true,
this.disabledBg = false,
this.textAlign = TextAlign.start,
this.textExpanded = false,
this.maxLines = 1})
: super(key: key);