BlocxFormButtonRow<F extends BlocxBaseFormEntity<F, E> , P, E extends Enum> constructor
const
BlocxFormButtonRow<F extends BlocxBaseFormEntity<F, E> , P, E extends Enum> ({
- Key? key,
- required BlocxFormState<
F, E> formState, - required String registerText,
- required String registerSubmittingText,
- VoidCallback? onSecondButtonPressed,
- TextStyle? registerTextStyle,
- RegisterButtonType registerType = RegisterButtonType.filled,
- VoidCallback? onRegisterPressed,
- ButtonStyle? submitButtonStyle,
- String secondButtonText = 'Cancel',
- ButtonStyle? secondButtonStyle,
- bool disablePopWhileSubmitting = false,
- bool disableRegisterWhenInvalid = false,
- double spacing = 12.0,
- bool expandEqually = true,
- double height = 40.0,
Creates a form button row.
Implementation
const BlocxFormButtonRow({
super.key,
required this.formState,
required this.registerText,
required this.registerSubmittingText,
this.onSecondButtonPressed,
this.registerTextStyle,
this.registerType = RegisterButtonType.filled,
this.onRegisterPressed,
this.submitButtonStyle,
this.secondButtonText = 'Cancel',
this.secondButtonStyle,
this.disablePopWhileSubmitting = false,
this.disableRegisterWhenInvalid = false,
this.spacing = 12.0,
this.expandEqually = true,
this.height = 40.0,
});