GFormSubmitButton.text constructor

GFormSubmitButton.text({
  1. Key? key,
  2. GFormController? controller,
  3. required String label,
  4. required FutureOr<void> onSubmit(
    1. Map<String, String> values
    ),
  5. bool resetOnSuccess = false,
  6. TextStyle? textStyle,
  7. ButtonStyle? style,
  8. Color loadingColor = Colors.white,
  9. double loadingSize = 24.0,
})

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),
  );
}