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

Compatibility Issues with Flutter SDK (accentColor and textTheme errors) #289

Open
mynoded opened this issue Dec 20, 2024 · 0 comments
Open

Comments

@mynoded
Copy link

mynoded commented Dec 20, 2024

I encountered compatibility issues between the flutter_neumorphic package and the latest Flutter SDK. The following errors occur when I try to run my project
Error Details:

1.accentColor is no longer available:

Error: No named parameter with the name 'accentColor'.
accentColor: theme.variantColor,

It seems accentColor was removed in Flutter 2.10+ and replaced by colorScheme.secondary.

2.textTheme.headline5 and textTheme.bodyText2 are undefined:

Error: The getter 'textTheme' isn't defined for the class 'AppBarTheme'.
style: (appBarTheme.textTheme?.headline5 ?? Theme.of(context).textTheme.headline5!)

These properties (headline5 and bodyText2) have been renamed to titleLarge and bodyMedium in newer versions of Flutter.

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

1 participant