ButtonWidget constructor

ButtonWidget({
  1. Key? key,
  2. required dynamic onPressed(),
  3. Color background = Colors.blue,
  4. TextStyle textStyle = const TextStyle(color: Colors.white),
  5. required String text,
  6. Color borderColor = Colors.blue,
  7. double radius = 10,
  8. double? height,
  9. double? width,
})

Implementation

ButtonWidget({
  super.key,
  required this.onPressed,
  this.background = Colors.blue,
  this.textStyle = const TextStyle(color: Colors.white),
  required this.text,
  this.borderColor = Colors.blue,
  this.radius = 10,
  this.height,
  this.width,
});