CustomTileButton constructor

const CustomTileButton({
  1. Key? key,
  2. Function? onPressed,
  3. String? text,
  4. TextStyle? textStyle,
  5. TextAlign? textAlign = TextAlign.start,
  6. Color? textColor,
  7. Color? backgroundColor,
  8. Color? overlayColor,
  9. Widget? child,
  10. Widget? leftIcon,
  11. Widget? rightIcon,
  12. bool disabled = false,
  13. EdgeInsets? margin,
  14. EdgeInsets? padding,
  15. double? height,
  16. double? width,
  17. double? elevation,
  18. int? flex,
  19. BorderRadius? borderRadius,
  20. BorderSide? border,
  21. VisualDensity? visualDensity,
  22. ButtonStyle? buttonStyle,
  23. String? textTitle,
  24. String? textSubtitle,
  25. bool invertTitlePosition = false,
  26. TextStyle? subtitleStyle,
  27. TextOverflow textOverflow = TextOverflow.clip,
  28. bool softWrap = false,
  29. Color? subtitleColor,
})

Implementation

const CustomTileButton({
  Key? key,
  super.onPressed,
  super.text,
  super.textStyle,
  super.textAlign = TextAlign.start,
  super.textColor,
  super.backgroundColor,
  super.overlayColor,
  super.child,
  super.leftIcon,
  super.rightIcon,
  super.disabled = false,
  super.margin,
  super.padding,
  super.height,
  super.width,
  super.elevation,
  super.flex,
  super.borderRadius,
  super.border,
  super.visualDensity,
  super.buttonStyle,

  this.textTitle,
  this.textSubtitle,
  this.invertTitlePosition = false,
  this.subtitleStyle,
  this.textOverflow = TextOverflow.clip,
  this.softWrap = false,
  this.subtitleColor
}) : super(key: key);