hnvn/flutter_image_cropper

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

Opened this issue · 4 comments

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

@gorjix you get this fixed?

Same issue

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.