FancyButton constructor
const
FancyButton({
- Key? key,
- required String text,
- required VoidCallback onPressed,
- Gradient gradient = const LinearGradient(colors: [Colors.blue, Colors.purple]),
- double borderRadius = 12.0,
- IconData? icon,
- Color textColor = Colors.white,
- double elevation = 4.0,
- EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 24, vertical: 16),
Implementation
const FancyButton({
super.key,
required this.text,
required this.onPressed,
this.gradient = const LinearGradient(colors: [Colors.blue, Colors.purple]),
this.borderRadius = 12.0,
this.icon,
this.textColor = Colors.white,
this.elevation = 4.0,
this.padding = const EdgeInsets.symmetric(horizontal: 24, vertical: 16),
});