CustomButton constructor
const
CustomButton({
- Key? key,
- required String text,
- String? secondaryText,
- void onTap()?,
- TextStyle? style,
- TextStyle? secondaryTextStyle,
- EdgeInsetsGeometry? padding,
- Color? color,
- double? height,
- double? width,
- Color borderColor = Colors.transparent,
- double? borderRadius,
- bool? isLoader = false,
- LinearGradient? linearColor,
Implementation
const CustomButton(
{super.key,
required this.text,
this.secondaryText,
this.onTap,
this.style,
this.secondaryTextStyle,
this.padding,
this.color,
this.height,
this.width,
this.borderColor=Colors.transparent,
this.borderRadius,
this.isLoader = false,
this.linearColor});