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

ThemeData accentColor deprecated in Flutter 3.10.0 #274

Open
gmckesey opened this issue May 11, 2023 · 3 comments
Open

ThemeData accentColor deprecated in Flutter 3.10.0 #274

gmckesey opened this issue May 11, 2023 · 3 comments

Comments

@gmckesey
Copy link

gmckesey commented May 11, 2023

Projects including flutter_neomorphic will not build as of Flutter 3.10.0 due to the accentColor parameter in the ThemeData constructor being deprecated. The line at issue is app.dart:89.

@noahvelasco
Copy link

To temporarily solve this issue run in your project directory -

"flutter downgrade"

then accept the changes. You might have a few issues (const keywords, or others) but they are solvable by you and not the package. This should suffice until they fix this issue.

@den0206
Copy link

den0206 commented May 13, 2023

temporary fix was sent out to PR.

  flutter_neumorphic: 
    git:
      url: https://github.com/den0206/Flutter-Neumorphic.git
      ref: feature/remoce_accentcolor

This was referenced May 26, 2023
@JimTaylor319
Copy link

Not sure who to contact about it, but I think the issue may be related to the use of Theme.of(context).accentColor in the file "app,dart". And anywhere else it may potentially be used. That usage was removed from Flutter completely and thus throws the error. The new usage would be "Theme.of(context).colorScheme.secondary" instead. I'll copy-paste this reply to the other thread I found on the topic too, in the hopes someone will see it and make the change. I'd have done it myself really quick to see if it solved anything but I'm not listed as a collaborator lol

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

4 participants