WrapperTextButton constructor

const WrapperTextButton({
  1. Key? key,
  2. required VoidCallback onPressed,
  3. VoidCallback? onLongPress,
  4. ValueChanged<bool>? onHover,
  5. ValueChanged<bool>? onFocusChange,
  6. ButtonStyle? style,
  7. Clip clipBehavior = Clip.none,
  8. FocusNode? focusNode,
  9. bool autofocus = false,
  10. MaterialStatesController? statesController,
  11. bool? isSemanticButton,
  12. Widget? child,
  13. String? text,
  14. TextStyle? textStyle,
  15. Color textColor = Colors.black,
  16. double textSize = 14,
  17. TextAlign? textAlign,
  18. TextOverflow? overflow,
  19. int? maxLines,
  20. Color? backgroundColor,
  21. Color? foregroundColor,
  22. Color? overlayColor = Colors.transparent,
  23. Color? shadowColor,
  24. Color? surfaceTintColor,
  25. AlignmentGeometry? alignment,
  26. EdgeInsetsGeometry? padding,
  27. OutlinedBorder? shape,
  28. double radius = 0,
  29. BorderRadius? borderRadius,
  30. BorderSide? borderSide,
  31. Color? borderColor = Colors.transparent,
  32. double? borderWidth,
  33. BorderStyle? borderStyle,
  34. double? elevation,
  35. IconPosition? iconPosition = IconPosition.left,
  36. Widget? icon,
  37. Color? iconColor,
  38. double? iconSize,
  39. double? gap = 4,
  40. double? width,
  41. double? height,
  42. Size? minimumSize,
  43. MaterialTapTargetSize? tapTargetSize,
  44. bool enable = true,
  45. 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);