SkyButton constructor

const SkyButton({
  1. Key? key,
  2. required String text,
  3. required VoidCallback? onPressed,
  4. IconData? icon,
  5. Color? color,
  6. Color iconColor = Colors.white,
  7. Color textColor = Colors.white,
  8. double? height = 55,
  9. double? width = double.infinity,
  10. double? fontSize,
  11. FontWeight? fontWeight,
  12. double? borderRadius = 8,
  13. double? elevation = 1,
  14. EdgeInsetsGeometry? margin,
  15. EdgeInsetsGeometry? padding,
  16. bool wrapContent = false,
  17. Color? borderColor,
  18. double? borderWidth,
  19. Widget? iconWidget,
  20. bool outlineMode = false,
})

Implementation

const SkyButton({
  Key? key,
  required this.text,
  required this.onPressed,
  this.icon,
  this.color,
  this.iconColor = Colors.white,
  this.textColor = Colors.white,
  this.height = 55,
  this.width = double.infinity,
  this.fontSize,
  this.fontWeight,
  this.borderRadius = 8,
  this.elevation = 1,
  this.margin,
  this.padding,
  this.wrapContent = false,
  this.borderColor,
  this.borderWidth,
  this.iconWidget,
  this.outlineMode = false,
}) : super(key: key);