NsgButton constructor
const
NsgButton({
- Key? key,
- bool autoWidth = false,
- String? style,
- String? text = '',
- EdgeInsets? margin,
- EdgeInsets iconMargin = const EdgeInsets.fromLTRB(0, 0, 5, 0),
- IconData? icon,
- Color? iconColor,
- VoidCallback? onPressed,
- VoidCallback? onTap,
- Future<
bool> onTapAsync()?, - VoidCallback? onAfterTapAsync,
- VoidCallback? onDisabledPressed,
- bool? disabled,
- double? borderRadius,
- double? width,
- double? height,
- EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 10, vertical: 2),
- Color? color,
- Color? borderColor,
- Color? backColor,
- Color? backHoverColor,
- double? fontSize,
- FontWeight? fontWeight,
- Widget? widget,
- BoxShadow? shadow,
Implementation
const NsgButton(
{Key? key,
this.autoWidth = false,
this.style,
this.text = '',
this.margin,
this.iconMargin = const EdgeInsets.fromLTRB(0, 0, 5, 0),
this.icon,
this.iconColor,
this.onPressed,
this.onTap,
this.onTapAsync,
this.onAfterTapAsync,
this.onDisabledPressed,
this.disabled,
this.borderRadius,
this.width,
this.height,
this.padding = const EdgeInsets.symmetric(horizontal: 10, vertical: 2),
this.color,
this.borderColor,
this.backColor,
this.backHoverColor,
this.fontSize,
this.fontWeight,
this.widget,
this.shadow})
: super(key: key);