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

Error: The getter 'bodyText1' isn't defined for the class 'TextTheme'. EDIT: Master needs to get pushed to pub.dev? #105

Closed
mark8044 opened this issue Mar 31, 2024 · 8 comments

Comments

@mark8044
Copy link

mark8044 commented Mar 31, 2024

This appears with newer master branch 3.22.x version of flutter

EDIT: This might be fixed in the files already merged in master branch, but the latest master isn't actually pushed to pub.dev so that when this is used as a dependency its on an older version

@mark8044 mark8044 changed the title Error: The getter 'bodyText1' isn't defined for the class 'TextTheme' Error: The getter 'bodyText1' isn't defined for the class 'TextTheme'. EDIT: Master needs to get pushed to pub.dev? Mar 31, 2024
@evgfilim1
Copy link

evgfilim1 commented Apr 6, 2024

The current master branch should definitely be pushed to pub.dev because current published 1.0.3 will break apps depending on this library. Flutter 3.22 was released to beta channel, deprecated bodyText1 and bodyText2 properties from TextTheme class were removed, so it doesn't compile.

For future readers: workaround in your pubspec.yaml:

-   flutter_colorpicker: ^1.0.3
+   flutter_colorpicker:
+     git:
+       url: https://github.com/mchome/flutter_colorpicker
+       ref: master  # or 786d04363f587b818ce585d25b9c2bb62de95aba

@adebola-duf
Copy link

@evgfilim1 Thank you so much. It really helped.

@mqaa
Copy link

mqaa commented May 14, 2024

I'm using the package flutter_quill (singerdmx/flutter-quill#1865) that uses this package and building my app fails because of this issue. Any change the changes can be pushed to pub.dev?

@phubner
Copy link

phubner commented May 14, 2024

Same issue here. Thanks for the workaround @evgfilim1

@ledjoncili
Copy link

Same issue. Please publish to pub.dev master branch

@KimFromMarietta
Copy link

Same issue, except that the problem occurs because my app depends on dashbook, which depends on flutter_colorpicker. Currently, my app is crashing with flutter 3.22 due to the bodyText1 and bodyText2 deprecated fields

@BazinC
Copy link

BazinC commented May 17, 2024

I would suggest to lock the ref to a known commit instead of pointing to the master branch head,
in order to avoid possible unexpected breaking change when updates are pushed to master branch
(I had the problem in the past :) )
Exemple here with last known commit 92bdb69a313a56c391ef148c12ef6539bd31253d

  flutter_colorpicker:
    git:
      url: https://github.com/mchome/flutter_colorpicker
      ref: 92bdb69a313a56c391ef148c12ef6539bd31253d

And please @mchome (or whoever managing this package) publish a new version to pub :)

@mchome
Copy link
Owner

mchome commented May 19, 2024

Updated.

@mchome mchome closed this as completed May 19, 2024
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

9 participants