mchome / flutter_colorpicker

HSV(HSB)/HSL/RGB/Material color picker inspired by all the good design for your amazing flutter apps.
https://pub.dev/packages/flutter_colorpicker
MIT License
350 stars 203 forks source link

Request release #109

Closed dev-yakuza closed 4 months ago

dev-yakuza commented 4 months ago

First, thanks for making the awesome package.

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.

flutter_colorpicker:
    git: https://github.com/mchome/flutter_colorpicker.git
mchome commented 4 months ago

Updated.

dev-yakuza commented 4 months ago

@mchome Thanks! I confirm it 👍