Goto preferences -> Languages & Frameworks -> Flutter
Set your flutter sdk path for example :- /Users/apple/flutter-sdk/flutter
then apply your settings.
Make sure all dependencies are installed. if not
run - flutter pub get to install dependencies