hsbijarniya / image_editor_plus

Flutter Image Editor Plugin with simple, easy support for image editing using Paints, Text, Filters, Emoji and Sticker like stories.
MIT License
103 stars 103 forks source link

Error: The method 'ExtendedPagePosition.copyWith' doesn't have the named parameter #36

Closed blacknight9 closed 1 year ago

blacknight9 commented 1 year ago

hey,

after installing the package i got those errors :

../../.pub-cache/hosted/pub.dev/extended_image-6.4.1/lib/src/gesture/page_view/widgets/scroll_position.dart:213:15: Error: The method 'ExtendedPagePosition.copyWith' doesn't have the named parameter 'devicePixelRatio' of overridden method 'ViewportOffset with ScrollMetrics.copyWith'.
  PageMetrics copyWith({
              ^
../../Developer/flutter/packages/flutter/lib/src/widgets/scroll_metrics.dart:43:17: Context: This is the overridden method ('copyWith').
  ScrollMetrics copyWith({
                ^
../../.pub-cache/hosted/pub.dev/extended_image-6.4.1/lib/src/gesture/page_view/widgets/scroll_position.dart:213:15: Error: The method 'ExtendedPagePosition.copyWith' has fewer named arguments than those of overridden method 'PageMetrics.copyWith'.
  PageMetrics copyWith({
              ^
../../Developer/flutter/packages/flutter/lib/src/widgets/page_view.dart:277:15: Context: This is the overridden method ('copyWith').
  PageMetrics copyWith({
              ^
../../.pub-cache/hosted/pub.dev/extended_image-6.4.1/lib/src/gesture/page_view/widgets/scroll_position.dart:213:15: Error: The method 'ExtendedPagePosition.copyWith' doesn't have the named parameter 'devicePixelRatio' of overridden method 'PageMetrics.copyWith'.
  PageMetrics copyWith({
              ^
../../Developer/flutter/packages/flutter/lib/src/widgets/page_view.dart:277:15: Context: This is the overridden method ('copyWith').
  PageMetrics copyWith({
              ^
../../.pub-cache/hosted/pub.dev/screenshot-1.3.0/lib/screenshot.dart:160:7: Error: No named parameter with the name 'window'.
      window: ui.window,
      ^^^^^^
../../Developer/flutter/packages/flutter/lib/src/rendering/view.dart:68:3: Context: Found this candidate, but the arguments don't match.
  RenderView({
  ^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/extended_image-6.4.1/lib/src/gesture/page_view/gesture_page_view.dart:21:49: Error: Required named parameter 'devicePixelRatio' must be provided.
final PageMetrics _testPageMetrics = PageMetrics(
                                                ^
../../Developer/flutter/packages/flutter/lib/src/widgets/page_view.dart:266:3: Context: Found this candidate, but the arguments don't match.
  PageMetrics({
  ^^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/hand_signature-2.3.0+1/lib/src/signature_view.dart:245:11: Error: No named parameter with the name 'kind'.
          kind: kind,
          ^^^^
../../.pub-cache/hosted/pub.dev/extended_image-6.4.1/lib/src/gesture_detector/drag.dart:145:3: Error: The superclass, 'OneSequenceGestureRecognizer with DragGestureRecognizerMixin', has no unnamed constructor that takes no arguments.
  ExtendedDragGestureRecognizer({
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/extended_image-6.4.1/lib/src/gesture/page_view/widgets/scroll_position.dart:221:23: Error: Required named parameter 'devicePixelRatio' must be provided.
    return PageMetrics(
                      ^
../../Developer/flutter/packages/flutter/lib/src/widgets/page_view.dart:266:3: Context: Found this candidate, but the arguments don't match.
  PageMetrics({
  ^^^^^^^^^^^