NZButton.primary constructor
NZButton.primary({})
快速创建主要按钮 (背景色为主色,文字为白色)
Implementation
factory NZButton.primary({
Key? key,
required VoidCallback? onPressed,
String? label,
Widget? child,
double? width,
double height = 48.0,
double borderRadius = 12.0,
Widget? icon,
double iconGap = 8.0,
bool isLoading = false,
bool block = false,
double? progress,
Color? progressColor,
Color? color,
Color? foregroundColor,
}) => NZButton(
key: key,
onPressed: onPressed,
label: label,
style: NZButtonStyle.primary,
width: width,
height: height,
borderRadius: borderRadius,
icon: icon,
iconGap: iconGap,
isLoading: isLoading,
block: block,
progress: progress,
progressColor: progressColor,
color: color,
foregroundColor: foregroundColor,
child: child,
);