I ran flutter upgrade today, and now I am getting an error that says- [dart] The named parameter \'child\' isn\'t defined. The project is newly created and the default code
I just had the same issue. It looks like I changed a flutter lib file by mistake.
To fix this, without reinstalling Flutter SDK:
git status
modified: packages/flutter/lib/src/widgets/basic.dart
git checkout FILE_PATH
(ex: git checkout packages/flutter/lib/src/widgets/basic.dart
)