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

Fix(example): image_cropper outdated version #2100

Merged
merged 1 commit into from
Aug 11, 2024

Conversation

CatHood0
Copy link
Collaborator

@CatHood0 CatHood0 commented Aug 11, 2024

Description

If we update to the lastest Flutter version, when we try to run the example, this one will fail and it shows this stacktrace:

Target dart2js failed: ProcessException: Process exited abnormally with exit code 1:
../../../../.pub-cache/hosted/pub.dev/image_cropper_platform_interface-5.0.0/lib/src/models/cropped_file/html.dart:32:38:
Error: The method 'UnmodifiableUint8ListView' isn't defined for the class 'CroppedFile'.
- 'CroppedFile' is from 'package:image_cropper_platform_interface/src/models/cropped_file/html.dart' ('../../../../.pub-cache/hosted/pub.dev/image_cropper_platform_interface-5.0.0/lib/src/models/cropped_file/html.dart').
return Future.value(UnmodifiableUint8ListView(_initBytes!));
^^^^^^^^^^^^^^^^^^^^^^^^^
Error: Compilation failed.

This happens because since Dart 3.4 UnmodifiableUint8ListView was deprecated. see this.

Related Issues

  • Related enhance stringToColor with a custom defined palette from DefaultStyles #2095 (comment)

  • New feature: Adds new functionality without breaking existing features.

  • 🛠️ Bug fix: Resolves an issue without altering current behavior.

  • 🧹 Code refactor: Code restructuring that does not affect behavior.

  • Breaking change: Alters existing functionality and requires updates.

  • 🧪 Tests: Adds new tests or modifies existing tests.

  • 📝 Documentation: Updates or additions to documentation.

  • 🗑️ Chore: Routine tasks, or maintenance.

  • Build configuration change: Changes to build or deploy processes.

@singerdmx singerdmx merged commit ac573df into singerdmx:master Aug 11, 2024
2 checks passed
@CatHood0 CatHood0 deleted the fix_compilation_issue branch August 12, 2024 04:53
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

Successfully merging this pull request may close these issues.

2 participants