FXCurvedButton constructor

const FXCurvedButton({
  1. Key? key,
  2. required double width,
  3. required String title,
  4. required VoidCallback onTap,
  5. String testKey = '',
  6. Color backgroundColor = Colors.grey,
  7. EdgeInsetsGeometry padding1 = const EdgeInsets.all(10.0),
  8. EdgeInsetsGeometry padding2 = const EdgeInsets.symmetric(horizontal: 10.0, vertical: margin),
  9. double borderRadius = 0.0,
  10. double borderWidth = 0.0,
  11. Color? borderColor,
  12. List<BoxShadow>? boxShadow,
  13. Color textColor = Colors.black,
  14. double fontSize = fontSizeM,
})

Implementation

const FXCurvedButton({
  Key? key,
  required this.width,
  required this.title,
  required this.onTap,
  this.testKey = '',
  this.backgroundColor = Colors.grey,
  this.padding1 = const EdgeInsets.all(10.0),
  this.padding2 = const EdgeInsets.symmetric(
    horizontal: 10.0,
    vertical: margin,
  ),
  this.borderRadius = 0.0,
  this.borderWidth = 0.0,
  this.borderColor,
  this.boxShadow,
  this.textColor = Colors.black,
  this.fontSize = fontSizeM,
}) : super(key: key);