-
Notifications
You must be signed in to change notification settings - Fork 395
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
The getter 'backgroundColor' isn't defined for the class 'ThemeData #361
Comments
Same issue to me. |
Same issue |
#364 I've helped make repairs |
When will it be pushed to the main branch? |
just wait until the homeowner does it 😊 |
Hey guys, To fix this locally, I suggest making the neumorphic_card.dart file editable and allowing a static color to be passed. This should resolve the error. final color = Colors.blue; Thank you! |
It's not creating a problem for me locally but the build process is being affected and forcing me to create a build manually to upload it to app store connect. Don't know why it is working locally without any extra change lol |
@TuOnyxtec @VisionBao @leorachit Solved! You can just add the package in the pubspec.yaml file like this: persistent_bottom_nav_bar:
git:
url: https://github.com/HamzaSamirAmmar/PersistentBottomNavBar.git |
thanks |
Hello Still adding this is not working for me can someone help me? |
Hello I did but still the problem exists |
from neumorph_card change this line : final color = decoration.color ?? Theme.of(context).BackgroundColor; to final color = decoration.color ?? Theme.of(context).scaffoldBackgroundColor; |
I got this same error but for Getx package. Using the latest version solved the issue. |
Solved |
go to this pub cache file and replace it Replace: final color = decoration.color ?? Theme.of(context).backgroundColor; With: final color = decoration.color ?? Theme.of(context).colorScheme.background; |
../../.pub-cache/hosted/pub.dev/persistent_bottom_nav_bar-5.0.2/lib/neumorphic_package_by_serge_software/neumorphic_card.dart:57:57: Error: The getter 'backgroundColor' isn't defined for the class 'ThemeData'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'backgroundColor'.
final color = decoration.color ?? Theme.of(context).backgroundColor;
The text was updated successfully, but these errors were encountered: