KntButton constructor

const KntButton({
  1. Key? key,
  2. required Widget child,
  3. bool needFullWidth = false,
  4. double? height,
  5. EdgeInsets? padding,
  6. Widget? leadingIcon,
  7. Widget? trailingIcon,
  8. Color? backgroundColor,
  9. Color? borderColor,
  10. double? borderWidth,
  11. BorderRadius? borderRadius,
  12. VoidCallback? onPressed,
})

Implementation

const KntButton({
  super.key,
  required this.child,
  this.needFullWidth = false,
  this.height,
  this.padding,
  this.leadingIcon,
  this.trailingIcon,
  this.backgroundColor,
  this.borderColor,
  this.borderWidth,
  this.borderRadius,
  this.onPressed,
});