Skip to content

pub.flutter-io.cn/screenshot-1.3.0/lib/screenshot.dart:160:7: Error: No named parameter with the name 'window'. window: ui.window, #13

Description

@tanwanlanyue1

我使用的环境:
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.10.6, on Microsoft Windows [版本 10.0.19044.3086], locale zh-CN)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[√] Chrome - develop for the web
[X] Visual Studio - develop for Windows
X Visual Studio not installed; this is necessary for Windows development.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C++" workload, including all of its default components
[√] Android Studio (version 4.0)
[√] Android Studio (version 2020.3)
[√] Connected device (3 available)
[√] Network resources

! Doctor found issues in 1 category.
错误:
pub.flutter-io.cn/screenshot-1.3.0/lib/screenshot.dart:160:7: Error: No named parameter with the name 'window'. window: ui.window。
希望可以兼容一下
'Look up the current FlutterView from the context via View.of(context) or consult the PlatformDispatcher directly instead. '
'Deprecated to prepare for the upcoming multi-window support. '
'This feature was deprecated after v3.7.0-32.0.pre.'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions