skip to Main Content

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


  1. Can you please close the current app and re-run the app

    Login or Signup to reply.
  2. 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

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search