WideButton constructor

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

Implementation

const WideButton(
  this.text, {
  super.key,
  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),
});