JetButton constructor
const
JetButton({
- Key? key,
- required String text,
- FutureOr<
void> ? onTap()?, - JetButtonType type = JetButtonType.filled,
- bool isEnabled = true,
- double? width,
- double? height,
- IconData? icon,
- IconPosition iconPosition = IconPosition.left,
- String? loadingText,
- Color? backgroundColor,
- Color? foregroundColor,
- Color? borderColor,
- BorderRadius? borderRadius,
- EdgeInsetsGeometry? padding,
- TextStyle? textStyle,
- 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,
});