WideButton constructor

const WideButton(
  1. String text, {
  2. Key? key,
  3. dynamic required,
  4. double padding = 0.0,
  5. double height = 45,
  6. required void onPressed(),
  7. Color backgroundColor = Colors.blue,
  8. Color foregroundColor = Colors.white,
  9. double width = double.infinity,
  10. TextStyle textStyle = const TextStyle(fontSize: 16, fontWeight: FontWeight.bold),
})

Implementation

const WideButton(
  this.text, {
  Key? key,
  required,
  this.padding = 0.0,
  this.height = 45,
  required this.onPressed,
  this.backgroundColor = Colors.blue,
  this.foregroundColor = Colors.white,
  this.width = double.infinity,
  this.textStyle = const TextStyle(fontSize: 16, fontWeight: FontWeight.bold),
}) : super(key: key);