DNPrimaryButton.fullWidth constructor
DNPrimaryButton.fullWidth({
- Key? key,
- bool safeArea = false,
- Widget? pendingChild,
- Widget? disabledChild,
- bool enabled = true,
- bool isPending = false,
- Color? foregroundColor,
- Color? backgroundColor,
- Color? disabledBackgroundColor,
- Color? progressColor,
- required void onPressed(),
- 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,
- OutlinedBorder? border,
- required Widget child,
Implementation
factory DNPrimaryButton.fullWidth({
Key? key,
bool safeArea = false,
Widget? pendingChild,
Widget? disabledChild,
bool enabled = true,
bool isPending = false,
Color? foregroundColor,
Color? backgroundColor,
Color? disabledBackgroundColor,
Color? progressColor,
required void Function() onPressed,
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,
OutlinedBorder? border,
required Widget child,
}) {
return DNPrimaryButton(
key: key,
safeArea: safeArea,
pendingChild: pendingChild,
disabledChild: disabledChild,
enabled: enabled,
isPending: isPending,
minimumSize: Size(double.infinity, height),
foregroundColor: foregroundColor,
backgroundColor: backgroundColor,
disabledBackgroundColor: disabledBackgroundColor,
progressColor: progressColor,
onPressed: onPressed,
outlined: outlined,
height: height,
rounded: rounded,
borderRadius: borderRadius,
margin: margin,
padding: padding,
icon: icon,
border: border,
child: child,
);
}