Very good. I just did not understand the enum stuff.. Why does the default enum from dart does not work? And also, what happens if you try to modify the values of an object created with built_value?
thanks man , that was so helpful, if somebody have an error at 'Builder' in the generated file, thas probably beacause of a conflict, you can fix that by ' hide Builder ' in the imported file.
Thanks for the tutorials; I'm on a Mac and for some reason, the command "Flutter packages pub run build_runner watch" did not work for me. It seemed to be running in the terminal but it never created the .g. file. This command did work for me however. "pub run build_runner build"
No, you do not do that! Main reason is battery. If every app listens on background they will drain the whole battery very quickly. Solution is to use FCM. Idea is that every app listens a single notification service, and only that service listens to the server. Google it!
What better solution would you want. I think the question you should ask yourself is, does this package do what you need it to do. I dont think it's going to get any better than this. You could look at Freezed: itnext.io/comparing-freezed-to-built-value-3ff978c8647
It’s really really good , I have this problem of abstract class as a list in the field, can build value and json_serializable run within the same project?
I think you get used to it.. I did not use it in the past for this, but when i needed to clone stuff, or make it immutable it was so much work that i understood this package
Dear Reso Coder, the question is primarily for Flutter Users. Is there any way, to create in the "abstract class BuildVehicle" a Flutter-Widget for UI? After creating i want to call the "Widget Method" in Frontend like: return Scaffold( car.createUI() ) Are there better solutions? Regards Henning Kendall
Great tutorial, but I'm not sure why google made this so complicated. If you use Swift, the only thing you need to do is to declare your struct and make it codable, which is literally two words. I don't understand, since google owns Dart, why don't they add the struct keyword to the language.
No complaints about the tutorial and teaching style. Excellent as usual. But the library? It's supposed to CUT boilerplate? It's so complex and fiddly ( you have to add plugins just to get standard JSON!?) and requires build_runner. I'd rather write my own boilerplate code for value classes so at least when I look at the code in a year's time I know what the hell is going on (and I'm not at the mercy of breaking library changes). build_value. No thanks
thank you Reso, it's still relevant now.
This tutorial just rocks! Thank you, it was so easy to understand.
Now i can understand built_value stuffs. You are really great at explaining things.
I'm happy to help!
I think I just found flutter heaven! Srsly your vids are just EPIC! Ty for sharing!
any suggestion on how to deserialize nested json response from http to model classes using build value ?
Yes, I also encountered the problem that list nesting cannot be serialized. I don't know what to do
Very good. I just did not understand the enum stuff.. Why does the default enum from dart does not work? And also, what happens if you try to modify the values of an object created with built_value?
thanks man , that was so helpful, if somebody have an error at 'Builder' in the generated file, thas probably beacause of a conflict, you can fix that by ' hide Builder ' in the imported file.
Dude first youa re so clear to explain and also the snippets you gave are awesome, can be used in Android studio?
Even with this library there's so much boilerplate for something that is so simple in languages where value types are built in.
True, for now this is all we've got though.
marvelous work sir
Thanks for the tutorials; I'm on a Mac and for some reason, the command "Flutter packages pub run build_runner watch" did not work for me. It seemed to be running in the terminal but it never created the .g. file. This command did work for me however. "pub run build_runner build"
Excellent job ! 👏
Very nice video mate, I am glad i read yesterday that the dart team is implementing something native, hope it will be a bit simpler.
Wow! the explanation was simply great! thank you, I will subscribe
Very analytical tutorial, thank you.
Flutter's background execution to connect server when the app is killed or user is not using app
please make any video
No, you do not do that! Main reason is battery. If every app listens on background they will drain the whole battery very quickly. Solution is to use FCM. Idea is that every app listens a single notification service, and only that service listens to the server. Google it!
Thank you so much for this! But i had to use any for the versions.. Did not work here with last versions today (december/2019)
do we still need this package? or there are already better solutions?
What better solution would you want. I think the question you should ask yourself is, does this package do what you need it to do. I dont think it's going to get any better than this. You could look at Freezed: itnext.io/comparing-freezed-to-built-value-3ff978c8647
We have two packages first freezed second build value which package should we use for our project?
then why we have json serializable package????
Awesome! Thanks for this video :)
Thanks for the video.
I cannot find the built_value_generator package at the flutter library collections, is it gone? Can you please provide an update.
This improving code videos are awesome.
It’s really really good , I have this problem of abstract class as a list in the field, can build value and json_serializable run within the same project?
built_value has json serialization included already
thanks Reso Coder .. Ur my master in Flutter :) I'll show u my app when i finished :D
Is it done?
nicely understood! thanks
keep up the awsome work.
Thanks I Subscribed to u lol!!!!!!!!!!! Now I get to see these valuable videos!!!
You are my life saver. Thank you!
I'm glad I could help!
Great job
this package is too fukn complicated and has so much boilerplate code
I think you get used to it.. I did not use it in the past for this, but when i needed to clone stuff, or make it immutable it was so much work that i understood this package
look back native code buddy
I guess you dont know what is immutability is
This library github.com/k-paxian/dart-json-mapper has even less boilerplate and more features
excellent
Hi, how to create snippets 'blth' for built_value? By the way, thank for your awesome video. It makes me clearly about built value.
Oh I'm sorry. I forgot about dart.json file to declare snippet. Thank you!
@@quoccuongduongngoc876 is still don't get it man, how to create it
@@alifal-gibran7715 you can clone github and copy file dart.json :)
@@quoccuongduongngoc876 thanks
Dear Reso Coder,
the question is primarily for Flutter Users.
Is there any way, to create in the "abstract class BuildVehicle" a Flutter-Widget for UI?
After creating i want to call the "Widget Method" in Frontend like:
return Scaffold(
car.createUI()
)
Are there better solutions?
Regards
Henning Kendall
at last I understand some thing about built value
Great tutorial. Thank you.
What about json_serializable package? If all I want is serializing and deserializing json, would it be better to use that instead of built_value?
Yes, it might be the better option then.
Do u make courses?
Cool👍👍👍
Haven't seen anyone using the library declaration since a long time 😄
How can we work with built value deserialization when we have generic type?
The built_value Github repo contains issues where this is discussed.
What does means '_$' ?
That is a naming convention to let you know it is from generated code. The "_" means it's private and the "$" is added just as a naming convention.
Great tutorial, but I'm not sure why google made this so complicated. If you use Swift, the only thing you need to do is to declare your struct and make it codable, which is literally two words. I don't understand, since google owns Dart, why don't they add the struct keyword to the language.
I don't understand this either, but they're working on data classes already.
thanks
Can i compare objects with it? (kinda like what equatable does)
Yes
No complaints about the tutorial and teaching style. Excellent as usual. But the library? It's supposed to CUT boilerplate? It's so complex and fiddly ( you have to add plugins just to get standard JSON!?) and requires build_runner. I'd rather write my own boilerplate code for value classes so at least when I look at the code in a year's time I know what the hell is going on (and I'm not at the mercy of breaking library changes).
build_value. No thanks
I stopped using built_value for the same reasons. It's just too much. Dart Data Class extension for VS Code is perfect for "generating" boilerplate.
grpc is just sooo much simpler
for android devs, it's just data class feel bad for flutter devs :((
Hello
This is so hacky :|
thanx