Assets directory should be in project root path.
You should to write file names too:
text.txt, banner.png
flutter:
assets:
- assets/images/text.txt
- assets/images/banner.png
-
path3:
var path3 = '${appDocDir.path}/assets/images/banner.png';
You don't need to use path_provider to get image form assets dir.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…