I have an issue that the web app can’t read the csv file with correct path when process flutter build web on netlify. May I know what is wrong on my coding or build setup?
the csv file on netify after build is web/assets/assets/bus_list.csv
here is my setting on yaml file and dart coding:
assets:
- assets/bus_list.csv
dart coding:
final rawData = await rootBundle.loadString(“assets/bus_list.csv”);
Any steps to reproduce the issue?
I am not sure what happen, here is my build toml file content, seems normal.
but as my issue raise up, the csv file is under 2 assets folder, but the dart file reading the assets/bus_list.csv. that is why the app can’t read the csv
[[plugins]]
package = “netlify-plugin-flutter”
[plugins.inputs]
channel = “stable”
[build]
command = “flutter build web --release”
publish = “build/web”
Do you have a repo to share?