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

where does the .env file go? #88

Closed
nyck33 opened this issue Jul 6, 2023 · 4 comments
Closed

where does the .env file go? #88

nyck33 opened this issue Jul 6, 2023 · 4 comments

Comments

@nyck33
Copy link

nyck33 commented Jul 6, 2023

You need a tree diagram in your Readme so right away users know, "oh, that's where it goes".

@nyck33
Copy link
Author

nyck33 commented Jul 6, 2023

This don't work

image

flutter:

The following line ensures that the Material Icons font is

included with your application, so that you can use the icons in

the material Icons class.

uses-material-design: true

To add assets to your application, add an assets section, like this:

assets:
- .env

@zayKenyon
Copy link

There's a couple changes you need to make in-order to get this to work.

  1. You need to place the .env file in the root of your project, see my image below:

image

  1. Your pubspec.yaml should read as follows. People commonly get the indentation of assets wrong here so pay attention to your file.
flutter:
  uses-material-design: true
  assets:
    - .env

@zayKenyon
Copy link

If you're still having troubles, check out #72 .

@nyck33
Copy link
Author

nyck33 commented Jul 30, 2023

Thanks!

@nyck33 nyck33 closed this as completed Jul 30, 2023
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