FuturisticButton constructor

const FuturisticButton({
  1. Key? key,
  2. required String text,
  3. VoidCallback? onPressed,
  4. double width = 200,
  5. double height = 50,
  6. Color backgroundColor = const Color(0xFF1A1A1A),
  7. Color textColor = Colors.white,
  8. Color borderColor = const Color(0xFF00FFAA),
  9. double borderWidth = 2.0,
  10. double borderRadius = 8.0,
  11. TextStyle? textStyle,
  12. Duration animationDuration = const Duration(seconds: 2),
  13. bool isEnabled = true,
})

Implementation

const FuturisticButton({
  Key? key,
  required this.text,
  this.onPressed,
  this.width = 200,
  this.height = 50,
  this.backgroundColor = const Color(0xFF1A1A1A),
  this.textColor = Colors.white,
  this.borderColor = const Color(0xFF00FFAA),
  this.borderWidth = 2.0,
  this.borderRadius = 8.0,
  this.textStyle,
  this.animationDuration = const Duration(seconds: 2),
  this.isEnabled = true,
}) : super(key: key);