NZButton.text constructor
NZButton.text({})
快速创建文字按钮 (无背景,无边框)
Implementation
factory NZButton.text({
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.text,
width: width,
height: height,
borderRadius: borderRadius,
icon: icon,
iconGap: iconGap,
isLoading: isLoading,
block: block,
progress: progress,
progressColor: progressColor,
color: color,
foregroundColor: foregroundColor,
child: child,
);