BorderedRectangularButton constructor

const BorderedRectangularButton({
  1. Key? key,
  2. required Function onPressed,
  3. String text = 'Button',
  4. Color backgroundColor = Colors.blue,
  5. TextStyle textStyle = const TextStyle(color: Colors.white, fontSize: 20),
  6. Widget leading = const SizedBox(),
  7. Widget trailing = const SizedBox(),
  8. EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 10),
  9. EdgeInsetsGeometry margin = const EdgeInsets.all(0),
  10. double height = 36,
  11. double width = double.maxFinite,
  12. double cornerRadius = 4,
  13. Color borderColor = Colors.grey,
  14. double borderWidth = 1,
})

Implementation

const BorderedRectangularButton({
  super.key,
  required this.onPressed,
  this.text = 'Button',
  this.backgroundColor = Colors.blue,
  this.textStyle = const TextStyle(
    color: Colors.white,
    fontSize: 20,
  ),
  this.leading = const SizedBox(),
  this.trailing = const SizedBox(),
  this.padding = const EdgeInsets.symmetric(horizontal: 10),
  this.margin = const EdgeInsets.all(0),
  this.height = 36,
  this.width = double.maxFinite,
  this.cornerRadius = 4,
  this.borderColor = Colors.grey,
  this.borderWidth = 1,
});