ActionButton constructor

const ActionButton({
  1. Key? key,
  2. required String text,
  3. required VoidCallback onTap,
  4. required Color onHoverBackgroundColor,
  5. required Color textColor,
  6. required Color onHoverTextColor,
  7. required Color backgroundColor,
  8. required Duration animationDuration,
  9. required FontWeight fontWeight,
  10. required FontWeight onHoverFontWeight,
  11. required Color borderColor,
  12. required Color onHoverBorderColor,
  13. required double borderRadius,
  14. required EdgeInsets contentPadding,
  15. Curve? actionButtonAnimationCurve,
  16. double? fontSize,
  17. TextStyle? textStyle,
})

Implementation

const ActionButton({
  Key? key,
  required this.text,
  required this.onTap,
  required this.onHoverBackgroundColor,
  required this.textColor,
  required this.onHoverTextColor,
  required this.backgroundColor,
  required this.animationDuration,
  required this.fontWeight,
  required this.onHoverFontWeight,
  required this.borderColor,
  required this.onHoverBorderColor,
  required this.borderRadius,
  required this.contentPadding,
  this.actionButtonAnimationCurve,
  this.fontSize,
  this.textStyle,
}) : super(key: key);