WrapperTextButton constructor
const
WrapperTextButton({
- Key? key,
- required VoidCallback onPressed,
- VoidCallback? onLongPress,
- ValueChanged<
bool> ? onHover, - ValueChanged<
bool> ? onFocusChange, - ButtonStyle? style,
- Clip clipBehavior = Clip.none,
- FocusNode? focusNode,
- bool autofocus = false,
- MaterialStatesController? statesController,
- bool? isSemanticButton,
- Widget? child,
- String? text,
- TextStyle? textStyle,
- Color textColor = Colors.black,
- double textSize = 14,
- TextAlign? textAlign,
- TextOverflow? overflow,
- int? maxLines,
- Color? backgroundColor,
- Color? foregroundColor,
- Color? overlayColor = Colors.transparent,
- Color? shadowColor,
- Color? surfaceTintColor,
- AlignmentGeometry? alignment,
- EdgeInsetsGeometry? padding,
- OutlinedBorder? shape,
- double radius = 0,
- BorderRadius? borderRadius,
- BorderSide? borderSide,
- Color? borderColor = Colors.transparent,
- double? borderWidth,
- BorderStyle? borderStyle,
- double? elevation,
- IconPosition? iconPosition = IconPosition.left,
- Widget? icon,
- Color? iconColor,
- double? iconSize,
- double? gap = 4,
- double? width,
- double? height,
- Size? minimumSize,
- MaterialTapTargetSize? tapTargetSize,
- bool enable = true,
- FlexFit flexFit = FlexFit.loose,
Implementation
const WrapperTextButton({
super.key,
required this.onPressed,
this.onLongPress,
this.onHover,
this.onFocusChange,
this.style,
this.clipBehavior = Clip.none,
this.focusNode,
this.autofocus = false,
this.statesController,
this.isSemanticButton,
this.child,
this.text,
this.textStyle,
this.textColor = Colors.black,
this.textSize = 14,
this.textAlign,
this.overflow,
this.maxLines,
this.backgroundColor,
this.foregroundColor,
this.overlayColor = Colors.transparent,
this.shadowColor,
this.surfaceTintColor,
this.alignment,
this.padding,
this.shape,
this.radius = 0,
this.borderRadius,
this.borderSide,
this.borderColor = Colors.transparent,
this.borderWidth,
this.borderStyle,
this.elevation,
this.iconPosition = IconPosition.left,
this.icon,
this.iconColor,
this.iconSize,
this.gap = 4,
this.width,
this.height,
this.minimumSize,
this.tapTargetSize,
this.enable = true,
this.flexFit = FlexFit.loose,
}) : assert(child != null || text != null);