CustomButton constructor

const CustomButton({
  1. Key? key,
  2. required String text,
  3. String? secondaryText,
  4. void onTap()?,
  5. TextStyle? style,
  6. TextStyle? secondaryTextStyle,
  7. EdgeInsetsGeometry? padding,
  8. Color? color,
  9. double? height,
  10. double? width,
  11. Color borderColor = Colors.transparent,
  12. double? borderRadius,
  13. bool? isLoader = false,
  14. 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});