Anyone who will ever use Flutter is bound to require knowing how to handle this file. Anytime you need to add a dependency (like custom fonts, asset images or external packages), you're going to need to visit this file.
The pubspec.yaml file really looks scarier than it actually is. Most of it just comments to help you navigate it. In this video I remove all of the comments and show you what you should focus on: the dependencies. There are regular dependencies as well as dev dependencies. But for this video we'll just focus on the regular dependencies, as that's what you will be using 99% of the time.
Not only that, I also quickly exemplify how to add an image asset to your project. The goal here was just to show the pubspec.yaml file's functionalities in action.
Oh, and every time you make a change to it, don't forget to run the "pub get" command. This will make sure all of your project's dependencies are updated.
Also, if you run into any problems when using this file, start by checking if your indentation levels are correct. Each indentation level in YAML = 2 spaces.
If it still doesn't work after that try fully resetting your app. Sometimes you need to do that (like when you add custom fonts to your project.)
Flutter Mentor Videos Related to pubspec.yaml :
How to add custom fonts: • Flutter - How To Add Custom Fonts & How To...
How to add images: • Flutter - How To Add A Custom Image (Local...
How to add external packages: • Flutter - How To Install External Packages...
#pubspec #yaml #flutter
Credits:
OUTRO SONG:
Mitsubachi by Smith The Mister https://smiththemister.bandcamp.com
Smith The Mister https://bit.ly/Smith-The-Mister-YT
Free Download / Stream: http://bit.ly/mitsubachi
Music promoted by Audio Library • Mitsubachi – Smith The Mister (No Copyrigh...
Keywords:
Flutter, flutter tutorial, android studio, english, american accent, subtitles, closed captions, tutorial closed captions, flutter tutorial closed captions, flutter tutorial for beginners, flutter widgets, native english flutter tutorial,Dart tutorial,Dart language tutorial,Dart lang,Dart language,Dart
pubspec.yaml, pubspec error, pubspec fix
In questa pagina del sito puoi guardare il video online Flutter - Pubspec.yaml File Explained For Beginners della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Flutter Mentor 30 dicembre 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 20,870 volte e gli è piaciuto 200 spettatori. Buona visione!