BasicButton constructor

const BasicButton({
  1. required Widget child,
  2. required BasicButtonType type,
  3. Key? key,
  4. VoidCallback? onPressed,
  5. BorderRadius borderRadius = const BorderRadius.all(Radius.circular(6)),
  6. EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 16, vertical: 8),
  7. BasicBorder? border,
  8. Color? backgroundColor,
  9. Color? foregroundColor,
  10. bool? enableFeedback,
})

Implementation

const BasicButton({
  required this.child,
  required this.type,
  super.key,
  this.onPressed,
  this.borderRadius = const BorderRadius.all(Radius.circular(6)),
  this.padding = const EdgeInsets.symmetric(horizontal: 16, vertical: 8),
  this.border,
  this.backgroundColor,
  this.foregroundColor,
  this.enableFeedback,
});