SachinGanesh / screenshot

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

Not build with new flutter 3.22.0 #181

Closed marcellocamara closed 4 months ago

marcellocamara commented 4 months ago
Error (Xcode): ../../.pub-cache/hosted/pub.dev/screenshot-2.3.0/lib/screenshot.dart:164:9: Error: No named parameter with the name 'size'.

The size param is removed from the new version of Flutter 3.22.0

Flutter 3.19.6: Captura de Tela 2024-05-13 às 23 01 47

Flutter 3.22.0: Captura de Tela 2024-05-13 às 23 02 07

chandrabezzo commented 4 months ago

I see @ritheshSalyan solve this issue 2 weeks ago on this commit, please publish for new update.

marcellocamara commented 4 months ago

@chandrabezzo: this commit, please publish for new update.

Since this commit solves the problem, this approach works until the owner pushes the new version:

  screenshot:
    git: https://github.com/SachinGanesh/screenshot.git

This uses the master branch with the referenced commit

ritheshSalyan commented 4 months ago

Hi everyone , We have published latest version screenshot: ^2.4.0 to pub.dev. Please use the version from pub.dev. If this solves the issue, Please consider closing the issue.