Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try correcting the name to the name of an existing method, or defining a method named 'PopScope'. return PopScope( #370

Open
tanwanlanyue1 opened this issue Jul 24, 2024 · 0 comments

Comments

@tanwanlanyue1
Copy link

使用2.4.0版本出现错误
../../../../.pub-cache/hosted/pub.flutter-io.cn/tencent_calls_uikit-2.4.0/lib/src/ui/tuicall_kit_widget.dart:51:12: Error: The method 'PopScope' isn't defined for the class '_TUICallKitWidgetState'.

  • '_TUICallKitWidgetState' is from 'package:tencent_calls_uikit/src/ui/tuicall_kit_widget.dart' ('../../../../.pub-cache/hosted/pub.flutter-io.cn/tencent_calls_uikit-2.4.0/lib/src/ui/tuicall_kit_widget.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'PopScope'.
    return PopScope(
    ^^^^^^^^
    Target kernel_snapshot failed: Exception

FAILURE: Build failed with an exception.
flutter-sdk:flutter-3.10.6

解决方案:直接删除PopScope(
canPop: false,可以运行

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant