#7 - All you need to know about Dart Packages and the Pub Package Manager

  Рет қаралды 9,755

Flutterly

Flutterly

Күн бұрын

Hi there!
In this video I'll show you a complete explanation on Dart Packages, while exploring all the properties of pubpsec.yaml file, as well as the pub package manager.
All animations were done in VideoScribe, you can try it by clicking my affiliate link --- www.awin1.com/...
You can contact me directly here:
Join my Discord Server --- / discord
Twitter --- / letsgetwckd
Instagram --- / letsgetwckd
Also, if you want to support me furthermore you can become an KZbin Member, donate or buy my courses on Udemy, using the following links:
Become an Official KZbin Member! ---- / flutterly
Buy my Udemy Courses! ---- www.udemy.com/...
Support me on Revolut! ---- revolut.me/let...
Buy me a Ko-fi! --- ko-fi.com/wckdyt
Donate me on Paypal! --- www.paypal.me/...
Support me on Patreon! --- / wckdyt
Dart - from Novice to Expert Source Code --- github.com/The...

Пікірлер: 33
@Flutterly
@Flutterly 3 жыл бұрын
My Complete Dart Course is now live on Udemy! Go get it while it's hot! Oh, and as a gift to my community, here's a limited-time coupon (LETSGETWCKD) helping you get it with as little as 9.99$. It's a steal for the amount of work I put in. www.udemy.com/course/dart-from-novice-to-expert/?referralCode=EC9CB6CC14FFA62C901B
@sharbelokzan9673
@sharbelokzan9673 3 жыл бұрын
This is perfect for a flutter developers who want to up-level thier dart game 😍 In fact, a lot of flutter developers use most of these mentioned dart skills without proper understanding of what they actually mean, Thank you so much and please keep going
@Flutterly
@Flutterly 3 жыл бұрын
Thank you so much! I really appreciate your feedback! ✨
@arnauduquenoy75
@arnauduquenoy75 3 жыл бұрын
Super clear Dart Doctor :) superb as usual 👍
@Flutterly
@Flutterly 3 жыл бұрын
Thank you! 🌟
@AlanTuringWannabe
@AlanTuringWannabe 2 жыл бұрын
This was very thorough and well done. Thank you.
@DARKR2ID
@DARKR2ID Жыл бұрын
Your videos opens my mind to optimize my applications
@ajaykotiyal427
@ajaykotiyal427 Жыл бұрын
So Good Explanation. thanks
@kevinkkirimii
@kevinkkirimii Жыл бұрын
Interesting approach by dart on package management. Its quite cumbersome compared to java and go.
@masterfabio5
@masterfabio5 3 жыл бұрын
Hi Flutterly, your video is really awesome, probably the best tutorial out there, but I have a question. In 15:48, you are importing the src folder, which contains the implementation for all the used functions. Why aren't you importing the console_full_project.dart file, which contains the export for that functions? so instead of: import 'package:console_full_project/src/calculate.dart'; Why don't you just take advantage of your current package structure and do: import 'package:console_full_project/console_full_project.dart' as calculate; Thank you :)
@james-freekp
@james-freekp 3 жыл бұрын
Thanks for your sharing!!!
@Flutterly
@Flutterly 3 жыл бұрын
My pleasure!!
@huylygia5604
@huylygia5604 3 жыл бұрын
nice vid, thanks for your sharing
@Flutterly
@Flutterly 3 жыл бұрын
Thank you too
@earthrelated
@earthrelated 3 жыл бұрын
Esti un maestru!
@MajedSalmaoun
@MajedSalmaoun Жыл бұрын
your are a legend
@markrazielfrank9422
@markrazielfrank9422 3 жыл бұрын
I f seem to have failed to link up the consolefuldart file with the calculator.. Also, there is no option for me to import the library package as you did at 15:14, please help.. any feedback from you or someone else would be greatly appreciated...
@Osmanity
@Osmanity 3 жыл бұрын
I think we got the same problem, i am working on how to fix that, here the message I get: Publishable packages can't have path dependencies. Try adding a 'publish_to: none' entry to mark the package as not for publishing or remove the path dependency.
@markrazielfrank9422
@markrazielfrank9422 3 жыл бұрын
@@Osmanity thanks!
@mazenalsakkaf
@mazenalsakkaf 3 жыл бұрын
@@Osmanity hi, have you fixed it.?
@rodrigoa.6727
@rodrigoa.6727 2 жыл бұрын
I tried to run the command "time" in PowerShell terminal inside Vscode but didn't recognize . What could it be? Do I need to install something in Vscode? Thanks
@imankamali5799
@imankamali5799 3 жыл бұрын
nice
@Flutterly
@Flutterly 3 жыл бұрын
Thank you, iman!
@biplabdutta
@biplabdutta 3 жыл бұрын
it might not be relevant to ask this question considering this video.. But I could not figure out the differences between initializing instance variables in the initializer list vs. doing the same inside constructor. Can you help me with that?
@Flutterly
@Flutterly 3 жыл бұрын
I don't quite understand your question, can you provide an example?
@biplabdutta
@biplabdutta 3 жыл бұрын
@@Flutterly The difference between these two codes.. and when what to use Code 1: class Student { final String name; final int age; Student(): name = 'Biplab', age = 21; } void main() { final obj = Student(); print(obj.name); } Code 2: class Student { final String name; final int age; Student(this.name, this.age); } void main() { final obj = Student('Biplab', 22); print(obj.name); } Thanks again!!
@Flutterly
@Flutterly 3 жыл бұрын
It's the same exact thing, in code 1, you'll implicitly set them to some values, and when you instantiate the class, they will be set to that value and can't be changed during the execution, in code 2, you have the ability to instantiate the Student object with your preferred fields, but they also won't be able to change during execution since they're also final.
@biplabdutta
@biplabdutta 3 жыл бұрын
Ahhhh okayyy then.. thank you again!
@kasandrop
@kasandrop 3 жыл бұрын
@@biplabdutta final fields can not be instantiated inside constructor body. example below will not work: Code 3: class Student { final String name; final int age; Student(){ name='Biplab'; age=22; } } Because you asked about the differences between initializing instance variables in the initializer list vs. doing the same inside constructor. Your code number 2 is not the example of the instantiation fields inside constructor body but syntactic sugar for setting fields. so case 1 and case 2 is the same.
@fedibaklouti3239
@fedibaklouti3239 10 ай бұрын
the pedantic dependency is replaced by the lints: ^3.0.0 so i always have a problem with this!
@moviesflix7082
@moviesflix7082 10 ай бұрын
bro were you having the problem with importing packages to calculate.dart which is inside lib->src
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
6 Months of Testing C++ Build Systems: Here’s What You Need to Know
16:33
C can do this too and it's faster than Python
2:09:48
Tsoding Daily
Рет қаралды 15 М.
How to Do 90% of What Plugins Do (With Just Vim)
1:14:03
thoughtbot
Рет қаралды 918 М.
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН