MotionOtpInput constructor
const
MotionOtpInput({
- Key? key,
- int length = 4,
- ValueChanged<
String> ? onChanged, - ValueChanged<
String> ? onCompleted, - TextEditingController? controller,
- FocusNode? focusNode,
- double boxHeight = 64.0,
- double spacing = 12.0,
- double borderRadius = 16.0,
- Color activeBorderColor = const Color(0xFF4F6EF7),
- Color inactiveBorderColor = const Color(0xFFE5E7EB),
- Color boxBackgroundColor = const Color(0x0D000000),
- TextStyle? textStyle,
- bool showLoadingAnimation = false,
- bool showSuccessAnimation = false,
- Color successColor = const Color(0xFF22C55E),
- VoidCallback? onSuccessAnimationCompleted,
Implementation
const MotionOtpInput({
super.key,
this.length = 4,
this.onChanged,
this.onCompleted,
this.controller,
this.focusNode,
this.boxHeight = 64.0,
this.spacing = 12.0,
this.borderRadius = 16.0,
this.activeBorderColor = const Color(0xFF4F6EF7),
this.inactiveBorderColor = const Color(0xFFE5E7EB),
this.boxBackgroundColor = const Color(0x0D000000),
this.textStyle,
this.showLoadingAnimation = false,
this.showSuccessAnimation = false,
this.successColor = const Color(0xFF22C55E),
this.onSuccessAnimationCompleted,
});