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

Error in PopInvokedWithResultCallback in latest version #135

Closed
nooralinakheel opened this issue Sep 17, 2024 · 1 comment · Fixed by #136
Closed

Error in PopInvokedWithResultCallback in latest version #135

nooralinakheel opened this issue Sep 17, 2024 · 1 comment · Fixed by #136

Comments

@nooralinakheel
Copy link

After updating to latest version 2.2.0 I am getting following error:

Launching lib/main.dart on iPhone 15 Pro Max in debug mode...
Running pod install...
Running Xcode build...
Xcode build done.                                           24.8s
Failed to build iOS app
Error (Xcode): ../../../../.pub-cache/hosted/pub.dev/adaptive_dialog-2.2.0/lib/src/modal_action_sheet/modal_action_sheet.dart:27:3: Error: Type 'PopInvokedWithResultCallback' not found.

Could not build the application for the simulator.
Error launching application on iPhone 15 Pro Max.

I tried cleaning, tried deleting the pub cache but nothing is working. So I moved back 1 version 2.1.0 and that works.

@github-project-automation github-project-automation bot moved this to Todo in mono OSS Sep 17, 2024
@mono0926 mono0926 linked a pull request Sep 20, 2024 that will close this issue
@github-project-automation github-project-automation bot moved this from Todo to Done in mono OSS Sep 20, 2024
@mono0926
Copy link
Owner

@nooralinakheel

The API is for Flutter 3.24 and later, so that error occurs in earlier versions. The adaptive_dialog required a specification in pubspec.yaml for Flutter 3.24 and later, but it was missing, so I corrected that and released version 2.2.1.

If you are using a version earlier than Flutter 3.24, please specify adaptive_dialog: 2.1.0 to resolve the issue.

Refer to this: https://pub.dev/packages/adaptive_dialog/changelog#220

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants