GradientButton constructor

const GradientButton({
  1. Key? key,
  2. required String title,
  3. required VoidCallback onTap,
  4. List<Color> gradientColors = const [Colors.blue, Colors.purple],
  5. double height = 48,
  6. double radius = 30,
  7. Color textColor = Colors.white,
  8. Widget? prefixIcon,
  9. double? textSize,
})

Implementation

const GradientButton({
  super.key,
  required this.title,
  required this.onTap,
  this.gradientColors = const [Colors.blue, Colors.purple],
  this.height = 48,
  this.radius = 30,
  this.textColor = Colors.white,
  this.prefixIcon,
  this.textSize
});