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

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

Open
usaikoo opened this issue Jun 18, 2020 · 2 comments

Comments

@usaikoo
Copy link

usaikoo commented Jun 18, 2020

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

@nicks258
Copy link

nicks258 commented Sep 8, 2020

Any updated on this?

@Seven163
Copy link

Seven163 commented Jun 4, 2021

same error, any methods to solve?

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

3 participants