NxButton.accent constructor

NxButton.accent({
  1. String? text,
  2. VoidCallback? onPressed,
  3. double? width,
  4. double? padding,
  5. double? fontSize,
  6. IconData? icon,
  7. double? radius,
  8. bool isLoading = false,
})

Implementation

factory NxButton.accent({
  String? text,
  VoidCallback? onPressed,
  double? width,
  double? padding,
  double? fontSize,
  IconData? icon,
  double? radius,
  bool isLoading = false
}) => NxButton(
  onPressed: onPressed,
  width: width,
  padding: padding,
  fontSize: fontSize,
  icon: icon,
  text: text,
  defaultButtonColor: NxColor.accent,
  iconColor: Colors.white,
  radius: radius,
  isLoading: isLoading
);