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

AppBarTheme #277

Open
Darshan-Bhuva opened this issue May 22, 2023 · 7 comments
Open

AppBarTheme #277

Darshan-Bhuva opened this issue May 22, 2023 · 7 comments

Comments

@Darshan-Bhuva
Copy link

/C:/Users/Admin/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'.

  • 'AppBarTheme' is from 'package:flutter/src/material/app_bar_theme.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/app_bar_theme.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'textTheme'.
    style: (appBarTheme.textTheme?.headline5 ??
    ^^^^^^^^^
    /C:/Users/Admin/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({
@khsuzan
Copy link

khsuzan commented May 22, 2023

facing same problem, did you get any solution?

@BenjiFarquhar
Copy link

@Darshan-Bhuva @khsuzan Add this to your pubspec.yaml

@LaxmisettiKarthik
Copy link

I am too facing the same issue can anyone help me out

@BenjiFarquhar
Copy link

@LaxmisettiKarthik it is not fixed in the official release yet so you need to check my comment above.

@LaxmisettiKarthik
Copy link

LaxmisettiKarthik commented Aug 9, 2023

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

@sircambridge
Copy link

wow this was really annoying to have to find this. please push the fix soon

@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

6 participants