GSubmitButton.text constructor

GSubmitButton.text({
  1. Key? key,
  2. required String label,
  3. required bool loading,
  4. required VoidCallback? onPressed,
  5. TextStyle? textStyle,
  6. ButtonStyle? style,
  7. Color loadingColor = Colors.white,
  8. double loadingSize = 24.0,
})

Implementation

factory GSubmitButton.text({
  Key? key,
  required String label,
  required bool loading,
  required VoidCallback? onPressed,
  TextStyle? textStyle,
  ButtonStyle? style,
  Color loadingColor = Colors.white,
  double loadingSize = 24.0,
}) {
  return GSubmitButton(
    key: key,
    loading: loading,
    onPressed: onPressed,
    style: style,
    loadingColor: loadingColor,
    loadingSize: loadingSize,
    child: Text(label, style: textStyle),
  );
}