FXSubmitButton constructor

const FXSubmitButton({
  1. Key? key,
  2. String testKey = '',
  3. required dynamic onTap(),
  4. double buttonHeight = 50.0,
  5. double? buttonWidth,
  6. EdgeInsetsGeometry buttonMargin = EdgeInsets.zero,
  7. EdgeInsetsGeometry buttonPadding = const EdgeInsets.symmetric(vertical: 10.0),
  8. required String title,
  9. double fontSize = fontSizeL,
  10. Color color = Colors.grey,
  11. Color fontColor = Colors.white,
  12. BoxBorder? border,
  13. double borderRadius = 25.0,
  14. List<BoxShadow>? boxShadow,
  15. Widget? prefixIcon,
  16. bool avoidSafeArea = false,
  17. bool isGradient = false,
  18. Color? gradientColor1,
  19. Color? gradientColor2,
})

Implementation

const FXSubmitButton({
  Key? key,
  this.testKey = '',
  required this.onTap,
  this.buttonHeight = 50.0,
  this.buttonWidth,
  this.buttonMargin = EdgeInsets.zero,
  this.buttonPadding = const EdgeInsets.symmetric(vertical: 10.0),
  required this.title,
  this.fontSize = fontSizeL,
  this.color = Colors.grey,
  this.fontColor = Colors.white,
  this.border,
  this.borderRadius = 25.0,
  this.boxShadow,
  this.prefixIcon,
  this.avoidSafeArea = false,
  this.isGradient = false,
  this.gradientColor1,
  this.gradientColor2,
}) : super(key: key);