DNPrimaryButton.bottomPage constructor
DNPrimaryButton.bottomPage({
- Key? key,
- bool safeArea = true,
- Widget? pendingChild,
- Widget? disabledChild,
- bool enabled = true,
- bool isPending = false,
- Color? foregroundColor,
- Color? backgroundColor,
- Color? disabledBackgroundColor,
- Color? progressColor,
- bool outlined = false,
- bool rounded = true,
- BorderRadius? borderRadius,
- double height = 56.0,
- String? text,
- double? fontSize,
- EdgeInsetsGeometry margin = const EdgeInsets.symmetric(vertical: 12.0, horizontal: 16.0),
- EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 16.0),
- Widget? icon,
- OutlinedBorder? border,
- Widget? child,
- required void onPressed(),
Implementation
factory DNPrimaryButton.bottomPage({
Key? key,
bool safeArea = true,
Widget? pendingChild,
Widget? disabledChild,
bool enabled = true,
bool isPending = false,
Color? foregroundColor,
Color? backgroundColor,
Color? disabledBackgroundColor,
Color? progressColor,
bool outlined = false,
bool rounded = true,
BorderRadius? borderRadius,
double height = 56.0,
String? text,
double? fontSize,
EdgeInsetsGeometry margin = const EdgeInsets.symmetric(vertical: 12.0, horizontal: 16.0),
EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 16.0),
Widget? icon,
OutlinedBorder? border,
Widget? child,
required void Function() onPressed,
}) {
return DNPrimaryButton(
key: key,
safeArea: safeArea,
enabled: enabled,
isPending: isPending,
minimumSize: Size(double.infinity, height),
onPressed: onPressed,
height: height,
margin: margin,
padding: padding,
rounded: rounded,
borderRadius: borderRadius,
foregroundColor: foregroundColor,
backgroundColor: backgroundColor,
disabledBackgroundColor: disabledBackgroundColor,
progressColor: progressColor,
outlined: outlined,
border: border,
icon: icon,
child: child ?? Text(text ?? "다음", style: DNTextStyle(fontSize: fontSize ?? 18)),
);
}