hm21 / pro_image_editor

The pro_image_editor is a Flutter widget designed for image editing within your application. It provides a flexible and convenient way to integrate image editing capabilities into your Flutter project.
https://hm21.github.io/pro_image_editor/
BSD 3-Clause "New" or "Revised" License
119 stars 69 forks source link

[Bug]: Compilation issue on Android #142

Closed Abhishek01039 closed 4 months ago

Abhishek01039 commented 4 months ago

Package Version

4.1.1

Flutter Version

3.19.6

Platforms

Android

How to reproduce?

Run the app on android

Logs (optional)

Launching lib/main.dart on sdk gphone64 arm64 in debug mode...
../../../.pub-cache/hosted/pub.dev/pro_image_editor-4.1.1/lib/utils/content_recorder.dart/content_recorder_controller.dart:409:9: Error: No named parameter with the name 'logicalConstraints'.
        logicalConstraints: BoxConstraints(
        ^^^^^^^^^^^^^^^^^^
../../../Downloads/flutter/packages/flutter/lib/src/rendering/view.dart:23:9: Context: Found this candidate, but the arguments don't match.
  const ViewConfiguration({
        ^^^^^^^^^^^^^^^^^
Target kernel_snapshot failed: Exception

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileFlutterBuildDevDebug'.
> Process 'command '/Users/abhishek/Downloads/flutter/bin/flutter'' finished with non-zero exit value 1

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 12s
Error: Gradle task assembleDebug failed with exit code 1

Exited (1).

Example code (optional)

No response

Device Model (optional)

Android emulator(android 14)

hm21 commented 4 months ago

Thank you for your feedback. This issue appears to be a duplicate of issue #117. To keep the discussion centralized, I'll close this one.