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

The getter 'WidgetStateColor' isn't defined for the class '_CropperActionBarState' #509

Open
gorjix opened this issue Jul 14, 2024 · 4 comments

Comments

@gorjix
Copy link

gorjix commented Jul 14, 2024

/C:/Users/Ali/AppData/Local/Pub/Cache/hosted/pub.dev/image_cropper_for_web-5.1.0/lib/src/cropper_actionbar.dart:34:21: Error: The getter 'WidgetStateColor' isn't defined for the class '_CropperActionBarState'.

  • '_CropperActionBarState' is from 'package:image_cropper_for_web/src/cropper_actionbar.dart' ('/C:/Users/Ali/AppData/Local/Pub/Cache/hosted/pub.dev/image_cropper_for_web-5.1.0/lib/src/cropper_actionbar.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'WidgetStateColor'.
    WidgetStateColor.resolveWith((states) => iconColor),
    ^^^^^^^^^^^^^^^^
    Failed to compile application.

This bug is for web platforms.

@horaltirane
Copy link

idem

@Shadowstep33
Copy link

@gorjix you get this fixed?

@ndrsrc
Copy link

ndrsrc commented Aug 9, 2024

Same issue

@ailtondvieira
Copy link

Temporary workaround, click on the link in the path where you are complaining about the WidgetStateColor and change the class to MaterialStateProperty.

This is because the latest versions of the package image_cropper require your Flutter to be more up to date.

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

5 participants