-
-
Notifications
You must be signed in to change notification settings - Fork 374
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
I think dependency analysis issue #283
Comments
same here |
i don't know if this is the same author but https://pub.dev/packages/flutter_neumorphic_plus |
Fix, temp work around ''' import 'package:flutter/material.dart'; class NeumorphicApp extends StatelessWidget { final bool debugShowMaterialGrid; const NeumorphicApp({ ThemeData _getMaterialTheme(NeumorphicThemeData theme) {
} @OverRide ''' |
Is this issue fixed? because I am getting the same issue. @bridgetsarahbrand Can you share some more details about the fix you provide? I tried that but its not working. Sorry, I am a newbie to Flutter. `/C:/Users/UserSystem-01/AppData/Local/Pub/Cache/hosted/pub.dev/flutter_neumorphic-3.2.0/lib/src/widget/app.dart:89:7: Error: No named parameter with the name 'accentColor'.
FAILURE: Build failed with an exception.
BUILD FAILED in 8s |
Thanks, @astheras for sharing this. This library seems to be working fine with sdk: ">=3.0.0" |
I have the same problems as OP. And I don't understand why the package has not been updated yet to reflect the changes Flutter itself made for "material.Theme.of(context).textTheme.bodyText2!," etc... these changes have been made months ago and are easy to implement/fix, as far as I can see. I could fork the package and just edit the things myself, but I would rather not. EDIT: I forked it to see if I could update stuff so it would work, but the problems are deeper. Since there seem to also be packages that this one uses that are not properly updated yet. I'm going to just let this go and build my own widgets probably. |
fixes.zip |
Just with the 'Building own widgets', not a bad idea, since this started happening earlier this year, I've started doing this, bit by bit, hopefully in the end we will have our own framework |
Its not a dependency issue, its because when Flutter was released the code was broken within this package quite a bit, it happened when Flutter released at 3.0.0 , hope this helps :) |
Thank you for the comment (and file), but since I've had some bad experience with other packages that werent actively kept up to date I've decided to move on and build my own. I rather not rely on the package in its current state. |
Launching lib\main.dart on M2006C3MG in debug mode...
Running Gradle task 'assembleDebug'...
../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_neumorphic-3.2.0/lib/src/widget/app_bar.dart:183:29: Error: The getter 'textTheme' isn't defined for the class 'AppBarTheme'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'textTheme'.
style: (appBarTheme.textTheme?.headline5 ??
^^^^^^^^^
../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_neumorphic-3.2.0/lib/src/widget/app.dart:89:7: Error: No named parameter with the name 'accentColor'.
accentColor: theme.variantColor,
^^^^^^^^^^^
/C:/src/flutter/packages/flutter/lib/src/material/theme_data.dart:290:11: Context: Found this candidate, but the arguments don't match.
factory ThemeData({
^
Target kernel_snapshot failed: Exception
FAILURE: Build failed with an exception.
Where:
Script 'C:\src\flutter\packages\flutter_tools\gradle\src\main\groovy\flutter.groovy' line: 1297
What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
BUILD FAILED in 10s
Exception: Gradle task assembleDebug failed with exit code 1
The text was updated successfully, but these errors were encountered: