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: No named parameter with the name 'useMaterial3' #24

Closed
AlaaMarawi opened this issue Jul 20, 2022 · 3 comments
Closed

Error: No named parameter with the name 'useMaterial3' #24

AlaaMarawi opened this issue Jul 20, 2022 · 3 comments

Comments

@AlaaMarawi
Copy link

AlaaMarawi commented Jul 20, 2022

Hi, thank you for your efforts..
I am depending on v 4.5.2 because of this issue
Flutter 2.8.1

I am facing an error on app run :

/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/nb_utils-4.5.2/lib/src/utils/system_utils.dart:156:5: Error: No named parameter with the name 'useMaterial3'.
    useMaterial3: true,
    ^^^^^^^^^^^^
/C:/src/flutter/packages/flutter/lib/src/material/theme_data.dart:222:11: Context: Found this candidate, but the arguments don't match.
  factory ThemeData({
          ^

and build is failed.
This is showing with the last version as well.

@bhoominn
Copy link
Owner

Please upgrade your Flutter SDK to latest.

@bhoominn
Copy link
Owner

bhoominn commented Jul 26, 2022

Is your issue solved? @AlaaMarawi

@AlaaMarawi
Copy link
Author

yes, I upgraded to flutter 3.0.5 and useMaterial3 is not causing an error anymore. (on both v 4.5.2 and latest: 4.6.16)

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

No branches or pull requests

2 participants