OTPTextField icon indicating copy to clipboard operation
OTPTextField copied to clipboard

bugfix: Issue #12

Open tajirhas9 opened this issue 3 years ago • 2 comments

Null check operator used on a null value iamvivekkaushik/OTPTextField#12

File: lib/otp_field.dart

on line 183 and line 229

- widget.onChanged!(currentPin);

+ var onChanged = widget.onChanged;
+ if(onChanged != null) {
+   onChanged(currentPin);
+ }

on line 179 and line 225

- widget.onCompleted!(currentPin);

+ var onCompleted = widget.onCompleted;
+      if(onCompleted != null) {
+        onCompleted(currentPin);
+      }

tajirhas9 avatar Aug 14 '21 16:08 tajirhas9

Hello, this update is not available in the latest version 1.1.1 from pub.dev

snkkka163 avatar Sep 25 '21 14:09 snkkka163

Yes, I created the pull request, but I guess the author is not active in this repo.

tajirhas9 avatar Oct 18 '21 21:10 tajirhas9