DNPrimaryButton constructor

const DNPrimaryButton({
  1. Key? key,
  2. OutlinedBorder? border,
  3. bool safeArea = false,
  4. Widget? pendingChild,
  5. Widget? disabledChild,
  6. bool enabled = true,
  7. bool isPending = false,
  8. Size? minimumSize,
  9. Color? foregroundColor,
  10. Color? backgroundColor,
  11. Color? disabledBackgroundColor,
  12. Color? progressColor,
  13. required void onPressed(),
  14. required Widget child,
  15. bool outlined = false,
  16. double height = 48.0,
  17. bool rounded = true,
  18. BorderRadius? borderRadius,
  19. EdgeInsetsGeometry margin = const EdgeInsets.all(0.0),
  20. EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 16.0),
  21. Widget? icon,
})

Implementation

const DNPrimaryButton({
  super.key,
  this.border,
  this.safeArea = false,
  this.pendingChild,
  this.disabledChild,
  this.enabled = true,
  this.isPending = false,
  this.minimumSize,
  this.foregroundColor,
  this.backgroundColor,
  this.disabledBackgroundColor,
  this.progressColor,
  required this.onPressed,
  required this.child,
  this.outlined = false,
  this.height = 48.0,
  this.rounded = true,
  this.borderRadius,
  this.margin = const EdgeInsets.all(0.0),
  this.padding = const EdgeInsets.symmetric(horizontal: 16.0),
  this.icon,
});