for this code
Future get mylocalPath async {
final directory = await getApplicationDocumentsDirectory();
return directory.path;
}
I tried
flutter clean
flutter pub get
outgrade etc
restrat
but no solve
For reading and writing in file, i need the path location
2
Answers
Can you please close the current app and re-run the app
Close the application and open it again, this problem happens when you add packages that need to be initialized when the application is compiled for the first time.
Hope this helps