GradientButton constructor
const
GradientButton({
- Key? key,
- required VoidCallback onPressed,
- required String buttonText,
- List<
Color> colors = const [Color(0xfff44336), Color(0xffff9800)], - List<
Color> darkColors = const [Color(0xff293545), Color(0xFF3B485F)], - List<
double> stops = const [0.0, 1.0], - TextStyle textStyle = const TextStyle(color: Colors.white, fontWeight: FontWeight.bold),
- double radius = 18.0,
Implementation
const GradientButton({
super.key,
required this.onPressed,
required this.buttonText,
this.colors = const [Color(0xfff44336), Color(0xffff9800)],
this.darkColors = const [Color(0xff293545), Color(0xFF3B485F)],
this.stops = const [0.0, 1.0],
this.textStyle =
const TextStyle(color: Colors.white, fontWeight: FontWeight.bold),
this.radius = 18.0,
});