DNPrimaryButton constructor
const
DNPrimaryButton({
- Key? key,
- OutlinedBorder? border,
- bool safeArea = false,
- Widget? pendingChild,
- Widget? disabledChild,
- bool enabled = true,
- bool isPending = false,
- Size? minimumSize,
- Color? foregroundColor,
- Color? backgroundColor,
- Color? disabledBackgroundColor,
- Color? progressColor,
- required void onPressed(),
- required Widget child,
- bool outlined = false,
- double height = 48.0,
- bool rounded = true,
- BorderRadius? borderRadius,
- EdgeInsetsGeometry margin = const EdgeInsets.all(0.0),
- EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 16.0),
- 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,
});