Tencent-RTC / Tencent-RTC/TUICallKit

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

Open
#370 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Swift
Stars
249
Forks
170
PR merge metrics
No merged PRs in 30d

Description

使用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,可以运行

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with lib/src/ui/tuicall_kit_widget.dart around line 51 and reproduce the build using Flutter 3.10.6 with tencent_calls_uikit 2.4.0. Check the PopScope usage and verify that the package builds successfully on the reported SDK while preserving the widget's back-navigation behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter
Domain
mobile-dev
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.