GSubmitButton.text constructor
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,
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),
);
}