JetButton constructor

const JetButton({
  1. Key? key,
  2. required String text,
  3. FutureOr<void>? onTap()?,
  4. JetButtonType type = JetButtonType.filled,
  5. bool isEnabled = true,
  6. double? width,
  7. double? height,
  8. IconData? icon,
  9. IconPosition iconPosition = IconPosition.left,
  10. String? loadingText,
  11. Color? backgroundColor,
  12. Color? foregroundColor,
  13. Color? borderColor,
  14. BorderRadius? borderRadius,
  15. EdgeInsetsGeometry? padding,
  16. TextStyle? textStyle,
  17. bool isExpanded = false,
})

Implementation

const JetButton({
  super.key,
  required this.text,
  this.onTap,
  this.type = JetButtonType.filled,
  this.isEnabled = true,
  this.width,
  this.height,
  this.icon,
  this.iconPosition = IconPosition.left,
  this.loadingText,
  this.backgroundColor,
  this.foregroundColor,
  this.borderColor,
  this.borderRadius,
  this.padding,
  this.textStyle,
  this.isExpanded = false,
});