简体   繁体   中英

Dart The named parameter 'home' isn't defined

when I am trying to run an app in VS code, this message shows up "The named parameter 'home' isn't defined.".

It is a general problem for all flutter projects .flutter doctor says no issues.

I also tried creating a new project from scratch using android studio and Intellij and no progress .it says (theme: and home:) are not identified as named parameters.before that everything was perfectly fine ..please help! :(

As mentioned in the comments, it seems like you may have modified your Flutter SDK (there was previously a bug in the analysis server that made this easy to do accidentally by running quick-fixes).

There's an open issue about having flutter doctor detect this here:

https://github.com/flutter/flutter/issues/25220

For now, running the git clean command Günter gave in the comments from inside your Flutter SDK folder should get things back to normal.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM