animated_otp_fields constructor

animated_otp_fields(
  1. TextEditingController textEditingController,
  2. {int OTP_digitsCount = 6,
  3. TextInputType keyboardType = TextInputType.number,
  4. dynamic onFieldSubmitted(
    1. String
    ),
  5. String obscureCharacter = '*',
  6. BorderRadiusGeometry borderRadius,
  7. Border border = const Border(bottom: BorderSide(width: 2)),
  8. bool autoFocus = true,
  9. double fieldWidth = 30.0,
  10. double fieldHeight = 30.0,
  11. TextStyle textStyle = const TextStyle(fontSize: 20),
  12. Color fieldBackgroungColor = Colors.transparent,
  13. EdgeInsetsGeometry contentPadding = const EdgeInsets.all(0.0),
  14. TextAnimation animation = TextAnimation.Fading,
  15. Duration duration = const Duration(seconds: 1),
  16. Curve forwardCurve = Curves.linear,
  17. Curve reverseCurve = Curves.linear,
  18. bool obscureText = false,
  19. double spaceBetweenFields = 20.0}
)

Implementation

animated_otp_fields(this.textEditingController,
    {this.OTP_digitsCount = 6,
    this.keyboardType = TextInputType.number,
    this.onFieldSubmitted,
    this.obscureCharacter = '*',
    this.borderRadius,
    this.border = const Border(bottom: BorderSide(width: 2)),
    this.autoFocus = true,
    this.fieldWidth = 30.0,
    this.fieldHeight = 30.0,
    this.textStyle = const TextStyle(fontSize: 20),
    this.fieldBackgroungColor = Colors.transparent,
    this.contentPadding = const EdgeInsets.all(0.0),
    this.animation = TextAnimation.Fading,
    this.duration = const Duration(seconds: 1),
    this.forwardCurve = Curves.linear,
    this.reverseCurve = Curves.linear,
    this.obscureText = false,
    this.spaceBetweenFields = 20.0});