With Visual Code studio I can’t use relative Path for all assets. I Must use full path to show any asset images. When I’m using relative path, image doesn’t appear.
Do you know how can I use relative path with visual Studio ?
pubspec.yaml
<code>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:
- diolos/assets/images/
</code>
<code>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:
- diolos/assets/images/
</code>
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:
- diolos/assets/images/
when I link an image I Must add full path
<code>Image.asset(
height: 50, "/Users/ogosselin/Documents/Projets/AppMobile/diolos/assets/images/diolosLogoVioletEntete.png"),
</code>
<code>Image.asset(
height: 50, "/Users/ogosselin/Documents/Projets/AppMobile/diolos/assets/images/diolosLogoVioletEntete.png"),
</code>
Image.asset(
height: 50, "/Users/ogosselin/Documents/Projets/AppMobile/diolos/assets/images/diolosLogoVioletEntete.png"),
Thank you,
Regards,
Image doesn’t appear with relative path but it works with full path