OtpVerificationConfig constructor

const OtpVerificationConfig({
  1. int otpLength = 6,
  2. String? title = 'Verify your number',
  3. String? subtitle = 'Enter the code sent to {{phone}}',
  4. String buttonLabel = 'Verify',
  5. String changeNumberLabel = 'Change number',
  6. int resendCooldownSeconds = 60,
  7. String resendPrefixText = "Didn't receive a code?",
  8. String resendActionText = 'Resend',
  9. String resendCountdownPrefixText = 'Resend in',
  10. String invalidCodeMessage = 'Invalid code, please try again',
  11. String expiredCodeMessage = 'Code expired, please request a new one',
  12. Widget keyboardBuilder(
    1. TextEditingController phoneController
    )?,
  13. Widget header(
    1. String phone,
    2. VoidCallback onChangeNumber
    )?,
  14. FxTextStyle? titleStyle,
  15. FxTextStyle? subtitleStyle,
  16. Widget footer(
    1. VoidCallback onChangeNumber
    )?,
  17. EdgeInsets? padding,
  18. double? spacing,
  19. double? titleSpacing,
  20. MainAxisAlignment mainAxisAlignment = MainAxisAlignment.center,
  21. CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.stretch,
})

Implementation

const OtpVerificationConfig({
  this.otpLength = 6,
  this.title = 'Verify your number',
  this.subtitle = 'Enter the code sent to {{phone}}',
  this.buttonLabel = 'Verify',
  this.changeNumberLabel = 'Change number',
  this.resendCooldownSeconds = 60,
  this.resendPrefixText = "Didn't receive a code?",
  this.resendActionText = 'Resend',
  this.resendCountdownPrefixText = 'Resend in',
  this.invalidCodeMessage = 'Invalid code, please try again',
  this.expiredCodeMessage = 'Code expired, please request a new one',
  this.keyboardBuilder,
  this.header,
  this.titleStyle,
  this.subtitleStyle,
  this.footer,
  this.padding,
  this.spacing,
  this.titleSpacing,
  this.mainAxisAlignment = MainAxisAlignment.center,
  this.crossAxisAlignment = CrossAxisAlignment.stretch,
});