RoundedButton constructor

const RoundedButton({
  1. Key? key,
  2. AlignmentGeometry leadingAlignment = Alignment.centerRight,
  3. Color backgroundColor = Colors.blue,
  4. Color? borderColor,
  5. bool disabled = false,
  6. double elevation = 0,
  7. Widget? leadingWidget,
  8. bool loading = false,
  9. Widget? loadingWidget,
  10. required dynamic onPressed(),
  11. EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 0, vertical: 16),
  12. Color progressColor = Colors.white,
  13. double radius = 7,
  14. required Widget widget,
})

Implementation

const RoundedButton({
  Key? key,
  this.leadingAlignment = Alignment.centerRight,
  this.backgroundColor = Colors.blue,
  this.borderColor,
  this.disabled = false,
  this.elevation = 0,
  this.leadingWidget,
  this.loading = false,
  this.loadingWidget,
  required this.onPressed,
  this.padding = const EdgeInsets.symmetric(horizontal: 0, vertical: 16),
  this.progressColor = Colors.white,
  this.radius = 7,
  required this.widget,
}) : super(key: key);