Skip to content

运行示例项目提示Error: No named parameter with the name 'onPopInvokedWithResult'.  #9

@cjn882288

Description

@cjn882288

我本地Flutter版本是3.22.3,运行示例项目一直提示如下错误...具体需要哪个Flutter版本?

../lib/common/widgets/double_press_back.dart:50:7: Error: No named parameter with the name 'onPopInvokedWithResult'.
onPopInvokedWithResult: (bool didPop, value) async {
^^^^^^^^^^^^^^^^^^^^^^
/E:/flutter/packages/flutter/lib/src/widgets/pop_scope.dart:55:9: Context: Found this candidate, but the arguments don't match.
const PopScope({
^^^^^^^^
Target kernel_snapshot failed: Exception

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