When i first run the app, I saw this warning message
**some input files use or override a deprecated api. **
note: recompile with -xlint:deprecation for details.
then i run a flutter doctor and it shows this
though everything was running fine no issue until i replaced the entire return statement in the main.dart as directed in the practice. then i got this error warning
i have google everything i can to fix the error but nothing seems to be helping then i decided to try the final project. when i open the final project everything seems alright, no error warning then i decided to run the final project, after it finish compilation, installation of apk into my emulator and run the app successfully but now highlight the error in the main.dart line of code and would not let me run the app again.
What could be the reason why am getting this error message?