I was building a Flutter, & everything was running smoothly until today when I tried debugging with f5 + ctrl. The app launched but got stuck at the splash screen. I tried entering flutter run in the terminal but the same issues occurred. After doing research online I thought Flutter might have to ask permission to run on my physical device, So I installed the permission_handler dependency but that didn’t work either. There are also no error messages being shown.
This is all I see when I launch the app, & nothing else happens.
Those 2 problems are just unused imports, nothing problematic.
2
Answers
Try to lounch release mode ; flutter run –release, if its work maybe your phsical device have some problems to using debug mode, We encountered this problem on a device before
Please try
flutter clean
andflutter run
again.Also, does it work on emulator? Share the
flutter doctor
output as well.