DNPrimaryButton.bottomPage constructor

DNPrimaryButton.bottomPage({
  1. Key? key,
  2. bool safeArea = true,
  3. Widget? pendingChild,
  4. Widget? disabledChild,
  5. bool enabled = true,
  6. bool isPending = false,
  7. Color? foregroundColor,
  8. Color? backgroundColor,
  9. Color? disabledBackgroundColor,
  10. Color? progressColor,
  11. bool outlined = false,
  12. bool rounded = true,
  13. BorderRadius? borderRadius,
  14. double height = 56.0,
  15. String? text,
  16. double? fontSize,
  17. EdgeInsetsGeometry margin = const EdgeInsets.symmetric(vertical: 12.0, horizontal: 16.0),
  18. EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 16.0),
  19. Widget? icon,
  20. OutlinedBorder? border,
  21. Widget? child,
  22. 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)),
  );
}