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

No named parameter with the name 'onPopInvoked' #1359

Closed
1 of 7 tasks
KaranImaginationMedia opened this issue Jan 30, 2024 · 10 comments · Fixed by #1361
Closed
1 of 7 tasks

No named parameter with the name 'onPopInvoked' #1359

KaranImaginationMedia opened this issue Jan 30, 2024 · 10 comments · Fixed by #1361
Labels
awaiting author response Waiting for author of issue to respond with more info bug Something isn't working

Comments

@KaranImaginationMedia
Copy link

KaranImaginationMedia commented Jan 30, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Package/Plugin version

flutter_form_builder: ^9.2.0

Platforms

  • Android
  • iOS
  • Linux
  • MacOS
  • Web
  • Windows

Flutter doctor

Flutter doctor

[✓] Flutter (Channel stable, 3.13.8, on macOS 14.0 23A344 darwin-arm64, locale en-IN)
[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
[✓] Xcode - develop for iOS and macOS (Xcode 15.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.3)
[✓] Connected device (3 available)
[✓] Network resources

• No issues found!

Minimal code example

Code sample
Not able to run

Current Behavior

Error

Expected Behavior

Should be run

Steps To Reproduce

N/A

Aditional information

No response

@KaranImaginationMedia KaranImaginationMedia added the bug Something isn't working label Jan 30, 2024
@deandreamatias
Copy link
Collaborator

Please, add more information about this issue.
Currently, FormBuilder had the onPopInvoked property https://github.com/flutter-form-builder-ecosystem/flutter_form_builder/blob/main/lib/src/form_builder.dart

@deandreamatias deandreamatias added the awaiting author response Waiting for author of issue to respond with more info label Jan 30, 2024
@ManhBanh
Copy link

ManhBanh commented Feb 1, 2024

@deandreamatias same here. I just build apk from the Macbook and it shows this error
image

@wesleytoshio
Copy link

same here

@deandreamatias
Copy link
Collaborator

Ok.
This error is because onPopInvoked is a property for new version of Flutter 3.16.x, so on old version won't be works.
Use the version 9.1.1

@wesleytoshio
Copy link

Ok. This error is because onPopInvoked is a property for new version of Flutter 3.16.x, so on old version won't be works. Use the version 9.1.1

Wouldn't it be better for you to fix it than asking us to downgrade flutter?

@deandreamatias
Copy link
Collaborator

Ok. This error is because onPopInvoked is a property for new version of Flutter 3.16.x, so on old version won't be works. Use the version 9.1.1

Wouldn't it be better for you to fix it than asking us to downgrade flutter?

You need downgrade package version, not Flutter.
If I remove onPopInvoked, this package won't be support for Flutter 3.16

deandreamatias added a commit that referenced this issue Feb 1, 2024
@deandreamatias
Copy link
Collaborator

I release a new version 9.2.1 that update Flutter versions constraints to try avoid this error

@ManhBanh
Copy link

ManhBanh commented Feb 2, 2024

I release a new version 9.2.1 that update Flutter versions constraints to try avoid this error

thank you sir!

@jmw11x
Copy link

jmw11x commented Mar 6, 2024

I have this error after installing when it was already installed. Now cannot run application at all. I need a fix. Flutter needs to work on making this never able to happen or it will not last.

To fix this issue got to code they wrote and delete two lines canPop: .. and onPopInvoked: ... . Should never have been released if there was errors and as a dev I should not be having to delete lines of flutter code to have it compile.

Screenshot 2024-03-06 at 12 59 56 PM

@aahilalwani25
Copy link

aahilalwani25 commented Jul 17, 2024

when i try to run flutter --version

it gives me result:
Flutter 3.13.3 • channel stable • https://github.com/flutter/flutter.git Framework • revision 2524052335 (11 months ago) • 2023-09-06 14:32:31 -0700 Engine • revision b8d35810e9 Tools • Dart 3.1.1 • DevTools 2.25.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting author response Waiting for author of issue to respond with more info bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants