FXSubmitButton constructor
const
FXSubmitButton({
- Key? key,
- String testKey = '',
- required dynamic onTap(),
- double buttonHeight = 50.0,
- double? buttonWidth,
- EdgeInsetsGeometry buttonMargin = EdgeInsets.zero,
- EdgeInsetsGeometry buttonPadding = const EdgeInsets.symmetric(vertical: 10.0),
- required String title,
- double fontSize = fontSizeL,
- Color color = Colors.grey,
- Color fontColor = Colors.white,
- BoxBorder? border,
- double borderRadius = 25.0,
- List<
BoxShadow> ? boxShadow, - Widget? prefixIcon,
- bool avoidSafeArea = false,
- bool isGradient = false,
- Color? gradientColor1,
- 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);