YmGradientButton constructor

YmGradientButton(
  1. String text, {
  2. double fontSize = 14,
  3. FontWeight fontWeight = FontWeight.normal,
  4. Color textColor = const Color(0xFF666666),
  5. Size size = const Size(120, 42),
  6. Color borderColor = Colors.transparent,
  7. Color pressedBackgroundColor = const Color(0xFF606FFF),
  8. OutlinedBorder outlinedBorder = const StadiumBorder(),
  9. Gradient gradient = const LinearGradient(colors: [const Color(0xFF606FFF), const Color(0xFF3446F2)]),
  10. required dynamic onClick(),
})

Implementation

YmGradientButton(
  this.text, {
  this.fontSize = 14,
  this.fontWeight = FontWeight.normal,
  this.textColor = const Color(0xFF666666),
  this.size = const Size(120, 42),
  this.borderColor = Colors.transparent,
  this.pressedBackgroundColor = const Color(0xFF606FFF),
  this.outlinedBorder = const StadiumBorder(),
  this.gradient = const LinearGradient(colors: [const Color(0xFF606FFF), const Color(0xFF3446F2)]),
  required this.onClick,
});