Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Unhandled Exception on iOS if no additional strategies are provided #81

Open
khoadng opened this issue Mar 13, 2024 · 1 comment · May be fixed by #82
Open

[BUG] Unhandled Exception on iOS if no additional strategies are provided #81

khoadng opened this issue Mar 13, 2024 · 1 comment · May be fixed by #82
Labels
bug Something isn't working has fix There is PR that fix resolve this issue

Comments

@khoadng
Copy link

khoadng commented Mar 13, 2024

Expected behavior

Should handle empty strategies

Actual behavior

Throwing exception

Logs and stacktrace

[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: On iOS OTP autofill is built in TextField. Code from sms stores for 3 minutes.(see Readme)
#0      OTPInteractor.startListenRetriever (package:otp_autofill/src/otp_interactor.dart:89:7)
#1      OTPTextEditController.startListenRetriever (package:otp_autofill/src/otp_text_edit_controller.dart:110:37)
#2     <REDACTED>
#3      StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:5602:55)
#4      ComponentElement.mount (package:flutter/src/widgets/framework.dart:5447:5)
#5      Element.inflateWidget (package:flutter/src/widgets/framework.dart:4326:16)
#6      Element.updateChild (package:flutter/src/widgets/framework.dart:3837:18)
#7      SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:6736:14)
#8      Element.inflateWidget (package:flutter/src/widgets/framework.dart:4326:16)
#9      Element.updateC<…>
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Exception: Unexpected error: Bad state: No element
#0      OTPTextEditController.startListenRetriever.<anonymous closure> (package:otp_autofill/src/otp_text_edit_controller.dart:136:11)
#1      _FutureListener.handleError (dart:async/future_impl.dart:180:22)
#2      Future._propagateToListeners.handleError (dart:async/future_impl.dart:858:47)
#3      Future._propagateToListeners (dart:async/future_impl.dart:879:13)
#4      Future._completeError (dart:async/future_impl.dart:655:5)
#5      _completeWithErrorCallback (dart:async/future.dart:1334:10)
#6      Stream.first.<anonymous closure> (dart:async/stream.dart:1585:9)
#7      _RootZone.runGuarded (dart:async/zone.dart:1582:10)
#8      _BufferingStreamSubscription._sendDone.sendDone (dart:async/stream_impl.dart:392:13)
#9      _BufferingStreamSubscription._sendDone (dart:async/stream_impl.dart:402:7)
#10     _BufferingStreamSubscription._close (dart:async/stream_impl.dart:291:7)
#<…>
@khoadng khoadng added the bug Something isn't working label Mar 13, 2024
@khoadng khoadng linked a pull request Mar 13, 2024 that will close this issue
7 tasks
@plasticfiresam plasticfiresam added the has fix There is PR that fix resolve this issue label May 13, 2024
@SRzadafiya
Copy link

getting error yet on once i set command flutter clean

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working has fix There is PR that fix resolve this issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants