SachinGanesh / screenshot

Flutter Screenshot Library
https://pub.dev/packages/screenshot
MIT License
327 stars 137 forks source link

arguments don't match. const ViewConfiguration({ No named parameter with the name 'size'. #167

Closed SameerGhaffar closed 3 months ago

SameerGhaffar commented 3 months ago

I got this error message

/C:/Users/samee/AppData/Local/Pub/Cache/hosted/pub.dev/screenshot-2.1.0/lib/screenshot.dart:168:9: Error: No named parameter with the name 'size'. size: logicalSize, ^^^^ /C:/src/flutter/packages/flutter/lib/src/rendering/view.dart:28:9: Context: Found this candidate, but the arguments don't match. const ViewConfiguration({ ^^^^^^^^^^^^^^^^^ Target kernel_snapshot failed: Exception

FAILURE: Build failed with an exception.

BUILD FAILED in 5m 11s Error: Gradle task assembleDebug failed with exit code 1

ritheshSalyan commented 3 months ago

Hi, This issue occurred because of some API Changes in Flutter.

So, We have released 2 new versions :

2.2.0 - Use this version if you are in the beta/master channel. 2.3.0 - Use this version if you are in the Stable channel.

Closing this issue. If you think it is incorrect, Please feel free to reopen this issue