Flutter Freezed Code Generation - Data Classes, Unions/Sealed Classes, & Bloc Tutorial
HTML-код
- Опубликовано: 2 июн 2024
- » Flutter courses, writeups, and source code on Launch Club 🧠
drp.li/Iq9Bk
www.launchclub.io/blog/flutte...
» Flutter Job Board 👋
drp.li/T9bLq
Code generation will take your Flutter app development process to the next level. In this video, you'll learn how to use Freezed to generate data classes and unions to greatly reduce the amount of boilerplate code in your apps.
» Resources 📂
Freezed Package: pub.dev/packages/freezed
Equatable: pub.dev/packages/equatable
Dart Data Class Generator: marketplace.visualstudio.com/...
» Remember to like, subscribe, comment, and share this video!🚨
ruclips.net/user/MarcusNg?sub_...
» Socials📱
GitHub: github.com/MarcusNg
Twitter: / marcuslng
» Timestamps 🕒
0:00 Flutter Freezed Code Generation Intro
0:24 Normal User Model
0:39 Equatable
0:51 copyWith
1:14 toJson & fromJson
1:24 VSCode Extension - Dart Data Class Generator
1:58 Freezed Package
3:06 Generate Code
3:26 analysis_options.yaml - Exclude .g.dart and .freezed.dart files
3:34 Freezed toJson & fromJson
4:07 Freezed Custom Methods
4:34 Data Model Relationships
5:10 Serialize Nested Lists of Freezed Objects
5:26 Freezed Unions/Sealed Classes
5:30 Flutter Bloc
6:18 Freezed & Bloc
7:13 Pattern Matching with .when
7:32 Thanks for watching 🙏
» Affiliates 🔥
3D Mockups - LaunchClub.io/rotato
» Music 🎶
[NCS ( / nocopyrightsounds )]
Sky High - Elektronomia ( / elektronomia )
Joakim Karud ( / joakimkarud )
#Flutter #Freezed #CodeGeneration
Marcus, you are one of my fav Flutter tutor here in youtube, always quality content, lot's of different and interesting topics. Keep it up!
The best explanation I've ever seen. Thank you so much. especially nested JSON array serialize part is awesome.
I am actually very happy to know that you are active again. You're the best 😘
Your explanation is awesome! It's so detailed but at the same time so concise. I loved it, you earned a new follower, and ain't easy to get me as one. Thank you so much for such good job.
shortest freezed tutorial and the best too 🔥...this video is underrated
Thanks Marcus! Amazing Tutorial!!
awesome this is going to save me a lot of time, great tutorial!
This is a wonderful video. Thank you so for this great work.
Excellent! The instructional video is concise with detail explanations. Thank you so much.
Marcus you are the best! Im sad that you are not uploading as often as before
That was really awesome tutorial to understand freeze kudos man ....
very useful and also calmed tutorial
to the point! , thanks!
Thank you!
Amazing
Awesome!
Nice video, Thanks.
Marcus your explanation are making easy to understand bloc.
Please.please make full video on bloc statemanagement .it would be so easy to understand from you.
Please
Bro, I have checked your website and it's really amazing. It's so lightweight and fast in its mobile version, and there is so the nice appearing effect on stuff when you scroll it. Could you pls answer how did you make it so fast and what did you use for that appearing effect?
nice !!! please make more
Best explanation
This is the most outstanding of videos. Marcus does the freezer format that you use for classes have the same functionality as Equatable. Can I stop using Equatable and not have to worry about equality while using Freezed?
Hey, I'm interested on how you make bottom nav bar , do you mind to make one tutorial of it ?
Riverpod vs bloc, which one would you choose?
When something new on launchclub will be release? Your bloc instagram course was awesome. I need more
aww thanks
Nice tutorial. What extension did you use to highlight error explanation at right side of the error line?
Error lens
Combine with fpdart will make your app and code even faster :)
hey hey is there any link for this repository? I like how it works so wish to implement maybe chopper or retrofit on this architecture
Hi Marcus, thank you for the tutorial. I'm beginners and your video helps me a lot. Would you make more tutorial about BLoC in the future? (and please upload it in this channel hehe) Thank you.
Second this. A tutorial dedicated to BLoC would be appreciated very very much
Why were the factory constructors in the counter_state.dart private? I thought just like in the counter_event.dart, they needed to be public..
Good ⚡
Thanks for the tutorial, but why do I feel like this is over complicating things than simplifying them
@@MarcusNg I agree. Plus its nice always knowing what your class properties and methods are :D
@@MarcusNg not just for bloc, for RiverPod, Union classes etc
My regret is not choose to use freezed at the first place, after my app scale to have like 400 screen and the boiler code is so much that we are missiple to read it
thanks, what to do if the freezed file just isnt generated?
How do I become a LaunchClub member? When I try to join it asks for my email and name and in the email I can subscribe, but I can't find how to create an account to access the content?
Still didn't get to know how to use Union/Sealed class but get what's the usecase
Hi Marcus, How can I get coupon for Launch Club ☺
Are you coming back with the awesome videos!?
how do I use freezed with bloc listeners ....
pls make a video on responsive ui
freezed is best
Like for Skyrim reference 👍🏼😂
Actually confused, just use vs code extension :)
too bad, unions got deprecated now in 2023 when Dart 3 was released
please remove the music the next time, it distracts