tejbhansahu / multi_image_crop

A flutter package to crop multiple images at a time on iOS and Android.
Apache License 2.0
5 stars 9 forks source link

Getting Errors after installing and importing this package #8

Open syedmehtabali opened 1 year ago

syedmehtabali commented 1 year ago

These are the error logs when I import the package to use it.

Flutter version: 3.10.5

Steps: Just add the package and import to use

: Error: The class 'Drag' can't be used as a mixin because it isn't a mixin class nor a mixin. ../…/src/crop.dart:63 class CropState extends State with TickerProviderStateMixin, Drag { ^ : Error: The method 'PageMetrics.copyWith' doesn't have the named parameter 'devicePixelRatio' of overridden method 'Object with ScrollMetrics.copyWith'. ../…/lib/preload_page_view.dart:179 PageMetrics copyWith({ ^ : Context: This is the overridden method ('copyWith'). ../…/widgets/scroll_metrics.dart:51 ScrollMetrics copyWith({ ^ : Error: The method '_PagePosition.copyWith' doesn't have the named parameter 'devicePixelRatio' of overridden method 'ViewportOffset with ScrollMetrics.copyWith'. ../…/lib/preload_page_view.dart:302 PageMetrics copyWith({ ^ : Context: This is the overridden method ('copyWith'). ../…/widgets/scroll_metrics.dart:51 ScrollMetrics copyWith({ ^

: Error: Required named parameter 'devicePixelRatio' must be provided. ../…/lib/preload_page_view.dart:170 }) : super(

        ^
zamirszn commented 1 year ago

I also had this issue 4 months ago , you can try https://pub.dev/packages/images_picker, let me know if you find a better multi image crop package