MotionOtpInput constructor

const MotionOtpInput({
  1. Key? key,
  2. int length = 4,
  3. ValueChanged<String>? onChanged,
  4. ValueChanged<String>? onCompleted,
  5. TextEditingController? controller,
  6. FocusNode? focusNode,
  7. double boxHeight = 64.0,
  8. double spacing = 12.0,
  9. double borderRadius = 16.0,
  10. Color activeBorderColor = const Color(0xFF4F6EF7),
  11. Color inactiveBorderColor = const Color(0xFFE5E7EB),
  12. Color boxBackgroundColor = const Color(0x0D000000),
  13. TextStyle? textStyle,
  14. bool showLoadingAnimation = false,
  15. bool showSuccessAnimation = false,
  16. Color successColor = const Color(0xFF22C55E),
  17. 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,
});