OtpVerificationConfig constructor
const
OtpVerificationConfig({
- int otpLength = 6,
- String? title = 'Verify your number',
- String? subtitle = 'Enter the code sent to {{phone}}',
- String buttonLabel = 'Verify',
- String changeNumberLabel = 'Change number',
- int resendCooldownSeconds = 60,
- String resendPrefixText = "Didn't receive a code?",
- String resendActionText = 'Resend',
- String resendCountdownPrefixText = 'Resend in',
- String invalidCodeMessage = 'Invalid code, please try again',
- String expiredCodeMessage = 'Code expired, please request a new one',
- Widget keyboardBuilder(
- TextEditingController phoneController
- Widget header(
- String phone,
- VoidCallback onChangeNumber
- FxTextStyle? titleStyle,
- FxTextStyle? subtitleStyle,
- EdgeInsets? padding,
- double? spacing,
- double? titleSpacing,
- MainAxisAlignment mainAxisAlignment = MainAxisAlignment.center,
- 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,
});