SkyButton constructor
const
SkyButton({
- Key? key,
- required String text,
- required VoidCallback? onPressed,
- IconData? icon,
- Color? color,
- Color iconColor = Colors.white,
- Color textColor = Colors.white,
- double? height = 55,
- double? width = double.infinity,
- double? fontSize,
- FontWeight? fontWeight,
- double? borderRadius = 8,
- double? elevation = 1,
- EdgeInsetsGeometry? margin,
- EdgeInsetsGeometry? padding,
- bool wrapContent = false,
- Color? borderColor,
- double? borderWidth,
- Widget? iconWidget,
- 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);