Skip to content

Error: No named parameter with the name 'isInitialRoute'. when run the application #12

@usaikoo

Description

@usaikoo

Compiler message:
../../developer/flutter/.pub-cache/hosted/pub.dartlang.org/gplayer-0.0.2/lib/defaultmediacontrol.dart:57:31: Error: No named parameter with the name
'isInitialRoute'.
settings: RouteSettings(isInitialRoute: false),
^^^^^^^^^^^^^^
../../developer/flutter/packages/flutter/lib/src/widgets/navigator.dart:458:9: Context: Found this candidate, but the arguments don't match.
const RouteSettings({
^^^^^^^^^^^^^

Compiler message:
../../developer/flutter/.pub-cache/hosted/pub.dartlang.org/gplayer-0.0.2/lib/defaultmediacontrol.dart:57:31: Error: No named parameter with the name 'isInitialRoute'.
settings: RouteSettings(isInitialRoute: false),
^^^^^^^^^^^^^^
../../developer/flutter/packages/flutter/lib/src/widgets/navigator.dart:458:9: Context: Found this candidate, but the arguments don't match.
const RouteSettings({
^^^^^^^^^^^^^
Target kernel_snapshot failed: Exception: Errors during snapshot creation: null
build failed.

FAILURE: Build failed with an exception.

  • Where:
    Script '/Users/saiko/developer/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 882

  • What went wrong:
    Execution failed for task ':app:compileFlutterBuildDebug'.

Process 'command '/Users/saiko/developer/flutter/bin/flutter'' finished with non-zero exit value 1

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 11s

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