YurButton constructor

const YurButton({
  1. Key? key,
  2. String? text,
  3. required BStyle buttonStyle,
  4. VoidCallback? onPressed,
  5. Color? buttonColor,
  6. Color? textColor,
  7. FontWeight? fontWeight,
  8. double borderRadius = 8.0,
  9. double fontSize = 16.0,
  10. double paddingVertical = 12.0,
  11. double paddingHorizontal = 24.0,
  12. int maxlines = 1,
  13. TextOverflow overflow = TextOverflow.ellipsis,
  14. IconData? icon,
  15. Color? iconColor,
  16. double? iconSize,
  17. String? iconAssets,
  18. double? iconAssetsHeight,
  19. String? iconNetwork,
  20. double? iconNetworkHeight,
  21. EdgeInsetsGeometry? padding,
})

Implementation

const YurButton({
  super.key,
  this.text,
  required this.buttonStyle,
  this.onPressed,
  this.buttonColor,
  this.textColor,
  this.fontWeight,
  this.borderRadius = 8.0,
  this.fontSize = 16.0,
  this.paddingVertical = 12.0,
  this.paddingHorizontal = 24.0,
  this.maxlines = 1,
  this.overflow = TextOverflow.ellipsis,
  this.icon,
  this.iconColor,
  this.iconSize,
  this.iconAssets,
  this.iconAssetsHeight,
  this.iconNetwork,
  this.iconNetworkHeight,
  this.padding,
});