GFormSubmitButton.text constructor
GFormSubmitButton.text({})
Implementation
factory GFormSubmitButton.text({
Key? key,
GFormController? controller,
required String label,
required FutureOr<void> Function(Map<String, String> values) onSubmit,
bool resetOnSuccess = false,
TextStyle? textStyle,
ButtonStyle? style,
Color loadingColor = Colors.white,
double loadingSize = 24.0,
}) {
return GFormSubmitButton(
key: key,
controller: controller,
onSubmit: onSubmit,
resetOnSuccess: resetOnSuccess,
style: style,
loadingColor: loadingColor,
loadingSize: loadingSize,
child: Text(label, style: textStyle),
);
}