Recently, I upgrade the Flutter version to 3.22.0, and I get the following error.
../../../.pub-cache/hosted/pub.dev/flutter_colorpicker-1.0.3/lib/src/colorpicker.dart:659:53: Error: The getter 'bodyText1' isn't defined for the class 'TextTheme'.
- 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('/opt/hostedtoolcache/flutter/stable-3.22.0-x64/packages/flutter/lib/src/material/text_theme.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'bodyText1'.
Theme.of(context).textTheme.bodyText1,
^^^^^^^^^
But the code is already updated with bodyLarge.
I think the deployed code is older than the current code, so could you deploy the current code to the new version? 🙏
Before deploying, I can fix the error by using the following code in the pubspec.yaml.
First, thanks for making the awesome package.
Recently, I upgrade the Flutter version to
3.22.0
, and I get the following error.But the code is already updated with
bodyLarge
.I think the deployed code is older than the current code, so could you deploy the current code to the new version? 🙏
Before deploying, I can fix the error by using the following code in the
pubspec.yaml
.