PrimaryNomoButton constructor
const
PrimaryNomoButton({
- Key? key,
- ActionType type = ActionType.def,
- String? text,
- IconData? icon,
- double? spacing = 12,
- Color? backgroundColor,
- Color? foregroundColor,
- double? elevation,
- double? width,
- double? height,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? margin,
- VoidCallback? onPressed,
- bool? enabled,
- BorderRadiusGeometry? borderRadius = const BorderRadius.all(Radius.circular(6)),
- TextStyle? textStyle,
- double? iconSize,
- BoxShape? shape,
- Widget? child,
- bool? expandToConstraints,
- bool? translate,
- Axis direction = Axis.horizontal,
Implementation
const PrimaryNomoButton({
super.key,
this.type = ActionType.def,
this.text,
this.icon,
this.spacing = 12,
this.backgroundColor,
this.foregroundColor,
this.elevation,
this.width,
this.height,
this.padding,
this.margin,
this.onPressed,
this.enabled,
this.borderRadius = const BorderRadius.all(Radius.circular(6)),
this.textStyle,
this.iconSize,
this.shape,
this.child,
this.expandToConstraints,
this.translate,
this.direction = Axis.horizontal,
}) : assert(
child == null || (icon == null && text == null),
'Either Specify child or text and icon',
);