Idean / Flutter-Neumorphic

A complete, ready to use, Neumorphic ui kit for Flutter, 🕶️ dark mode compatible
https://pub.dev/packages/flutter_neumorphic
Apache License 2.0
2.01k stars 370 forks source link

AppBarTheme #277

Open Darshan-Bhuva opened 1 year ago

Darshan-Bhuva commented 1 year ago

/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'.

khsuzan commented 1 year ago

facing same problem, did you get any solution?

BenjiFarquhar commented 1 year ago

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

LaxmisettiKarthik commented 1 year ago

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

BenjiFarquhar commented 1 year ago

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

LaxmisettiKarthik commented 1 year ago

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

sircambridge commented 1 year ago

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

JimTaylor319 commented 1 year ago

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