Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled Exception: Instance of 'FileNotFoundError' #8

Closed
imakb4r opened this issue Feb 13, 2023 · 2 comments
Closed

Unhandled Exception: Instance of 'FileNotFoundError' #8

imakb4r opened this issue Feb 13, 2023 · 2 comments

Comments

@imakb4r
Copy link

imakb4r commented Feb 13, 2023

I put .env file in the project root.I run the project from VSCode and then get FileNotFoundError. I checked the .env file location hundred of times, tried to change the file name, change the location to /lib etc - still no luck. Any idea?

@imakb4r imakb4r closed this as completed Feb 16, 2023
@YagoVY
Copy link

YagoVY commented Feb 18, 2023

Hi Imakb4,
You marked this as solved, can you explain how you did it please? I am stuck pretty much in the same...

@imakb4r
Copy link
Author

imakb4r commented Feb 19, 2023

HI YagoVY,
You have to add .env file in your project to store your secret key.
I follow this simple steps:
https://www.geeksforgeeks.org/how-to-add-env-file-in-flutter/

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants