skip to Main Content

my screen

enter image description here

Im working in Android Studio, using Flutter
my loading_screen.dart file is not reading my locally made locationscreen.dart file
because of this , I’m getting an error while running the code , tried upgarding the flutter . please help me with this….

2

Answers


  1. The import is gray because it is not used in the dart file, not because the ide reads the locally made dart file.

    the actual error is below halfway your code.

    Click on Dart analysis on the bottom right side of Android Studio ->
    You will see the error in red color -> double click on the error and the file will be scrolled to the line with error.

    Analyze the error and fix it.

    Login or Signup to reply.
  2. Go to Android Studio:

    1. File -> Invalidate Cache -> Invalidate and Restart.
    2. Open Dart Analysis tab -> click this icon to re-analyze.
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search