BlocxFormButtonRow<F extends BlocxBaseFormEntity<F, E>, P, E extends Enum> constructor

const BlocxFormButtonRow<F extends BlocxBaseFormEntity<F, E>, P, E extends Enum>({
  1. Key? key,
  2. required BlocxFormState<F, E> formState,
  3. required String registerText,
  4. required String registerSubmittingText,
  5. VoidCallback? onSecondButtonPressed,
  6. TextStyle? registerTextStyle,
  7. RegisterButtonType registerType = RegisterButtonType.filled,
  8. VoidCallback? onRegisterPressed,
  9. ButtonStyle? submitButtonStyle,
  10. String secondButtonText = 'Cancel',
  11. ButtonStyle? secondButtonStyle,
  12. bool disablePopWhileSubmitting = false,
  13. bool disableRegisterWhenInvalid = false,
  14. double spacing = 12.0,
  15. bool expandEqually = true,
  16. 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,
});