Built Value Tutorial for Dart & Flutter

Поділитися
Вставка
  • Опубліковано 28 гру 2024

КОМЕНТАРІ • 78

  • @vietstonedotdev
    @vietstonedotdev Рік тому

    thank you Reso, it's still relevant now.

  • @sinrostro13
    @sinrostro13 4 роки тому +4

    This tutorial just rocks! Thank you, it was so easy to understand.

  • @임창수-c7c
    @임창수-c7c 5 років тому +2

    Now i can understand built_value stuffs. You are really great at explaining things.

    • @ResoCoder
      @ResoCoder  5 років тому +2

      I'm happy to help!

  • @mohamedchakibmokrane2707
    @mohamedchakibmokrane2707 4 роки тому

    I think I just found flutter heaven! Srsly your vids are just EPIC! Ty for sharing!

  • @SKtheGEEK
    @SKtheGEEK 4 роки тому +1

    any suggestion on how to deserialize nested json response from http to model classes using build value ?

    • @elite_peaceif4076
      @elite_peaceif4076 3 роки тому

      Yes, I also encountered the problem that list nesting cannot be serialized. I don't know what to do

  • @danvilela
    @danvilela 5 років тому +1

    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?

  • @luvvvit
    @luvvvit 4 роки тому

    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.

  • @LeagueRandomPlayer
    @LeagueRandomPlayer 4 роки тому

    Dude first youa re so clear to explain and also the snippets you gave are awesome, can be used in Android studio?

  • @0011usagi
    @0011usagi 6 років тому +6

    Even with this library there's so much boilerplate for something that is so simple in languages where value types are built in.

    • @ResoCoder
      @ResoCoder  6 років тому +6

      True, for now this is all we've got though.

  • @officialismailshah
    @officialismailshah 3 роки тому

    marvelous work sir

  • @RR-vi1oz
    @RR-vi1oz 5 років тому +4

    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"

  • @parfaitkouassi
    @parfaitkouassi 2 роки тому

    Excellent job ! 👏

  • @RRits57
    @RRits57 4 роки тому

    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.

  • @alito0723
    @alito0723 5 років тому +2

    Wow! the explanation was simply great! thank you, I will subscribe

  • @dimitristotsios2292
    @dimitristotsios2292 5 років тому +1

    Very analytical tutorial, thank you.

  • @cabletvandinternetworldser5409
    @cabletvandinternetworldser5409 6 років тому +8

    Flutter's background execution to connect server when the app is killed or user is not using app
    please make any video

    • @askolmayanveysel2221
      @askolmayanveysel2221 4 роки тому

      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!

  • @danvilela
    @danvilela 5 років тому

    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)

  • @sergiofranklin8809
    @sergiofranklin8809 4 роки тому +2

    do we still need this package? or there are already better solutions?

    • @wickedgummybear3104
      @wickedgummybear3104 4 роки тому

      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

  • @piyushbhatnagar4735
    @piyushbhatnagar4735 Рік тому

    We have two packages first freezed second build value which package should we use for our project?

  • @Riyaz_shaikh_434
    @Riyaz_shaikh_434 5 років тому +1

    then why we have json serializable package????

  • @bstrnx
    @bstrnx 4 роки тому

    Awesome! Thanks for this video :)

  • @kendalltau9419
    @kendalltau9419 3 роки тому

    Thanks for the video.

  • @hasan11911
    @hasan11911 5 років тому +1

    I cannot find the built_value_generator package at the flutter library collections, is it gone? Can you please provide an update.

  • @furkanvatandas4819
    @furkanvatandas4819 5 років тому +2

    This improving code videos are awesome.

  • @em3888
    @em3888 5 років тому

    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?

    • @gzoechi
      @gzoechi 4 роки тому

      built_value has json serialization included already

  • @mrd1gr00tKawHmuNewsApp
    @mrd1gr00tKawHmuNewsApp 5 років тому

    thanks Reso Coder .. Ur my master in Flutter :) I'll show u my app when i finished :D

  • @anishvahora7018
    @anishvahora7018 3 роки тому

    nicely understood! thanks

  • @easazade
    @easazade 5 років тому

    keep up the awsome work.

  • @pradeep422
    @pradeep422 6 років тому

    Thanks I Subscribed to u lol!!!!!!!!!!! Now I get to see these valuable videos!!!

  • @jihyokim9161
    @jihyokim9161 5 років тому +1

    You are my life saver. Thank you!

    • @ResoCoder
      @ResoCoder  5 років тому

      I'm glad I could help!

  • @yudhisthirsingh8401
    @yudhisthirsingh8401 5 років тому

    Great job

  • @AhmedAli-jx9ie
    @AhmedAli-jx9ie 5 років тому +23

    this package is too fukn complicated and has so much boilerplate code

    • @danvilela
      @danvilela 5 років тому +1

      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

    • @htoonhtoonzaw8682
      @htoonhtoonzaw8682 4 роки тому

      look back native code buddy

    • @ShunKazamiify
      @ShunKazamiify 4 роки тому

      I guess you dont know what is immutability is

    • @AlexanderMazuruk
      @AlexanderMazuruk 4 роки тому

      This library github.com/k-paxian/dart-json-mapper has even less boilerplate and more features

  • @alich9995
    @alich9995 Рік тому

    excellent

  • @quoccuongduongngoc876
    @quoccuongduongngoc876 5 років тому

    Hi, how to create snippets 'blth' for built_value? By the way, thank for your awesome video. It makes me clearly about built value.

    • @quoccuongduongngoc876
      @quoccuongduongngoc876 5 років тому

      Oh I'm sorry. I forgot about dart.json file to declare snippet. Thank you!

    • @alifal-gibran7715
      @alifal-gibran7715 5 років тому +2

      @@quoccuongduongngoc876 is still don't get it man, how to create it

    • @quoccuongduongngoc876
      @quoccuongduongngoc876 5 років тому

      @@alifal-gibran7715 you can clone github and copy file dart.json :)

    • @alifal-gibran7715
      @alifal-gibran7715 5 років тому

      @@quoccuongduongngoc876 thanks

  • @henningkendall7158
    @henningkendall7158 6 років тому

    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

  • @mellatifateh4135
    @mellatifateh4135 6 років тому +1

    at last I understand some thing about built value

  • @mksoftwaresolutions9303
    @mksoftwaresolutions9303 5 років тому

    Great tutorial. Thank you.

    • @mksoftwaresolutions9303
      @mksoftwaresolutions9303 5 років тому

      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?

    • @ResoCoder
      @ResoCoder  5 років тому

      Yes, it might be the better option then.

  • @yudhisthirsingh8401
    @yudhisthirsingh8401 5 років тому

    Do u make courses?

  • @ibrohimxodjayev6158
    @ibrohimxodjayev6158 2 роки тому

    Cool👍👍👍

  • @gzoechi
    @gzoechi 4 роки тому

    Haven't seen anyone using the library declaration since a long time 😄

  • @anilbhomi9125
    @anilbhomi9125 5 років тому

    How can we work with built value deserialization when we have generic type?

    • @gzoechi
      @gzoechi 4 роки тому +1

      The built_value Github repo contains issues where this is discussed.

  • @alvarovalenzuela7389
    @alvarovalenzuela7389 5 років тому +1

    What does means '_$' ?

    • @justinandrewhampton
      @justinandrewhampton 4 роки тому +1

      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.

  • @HokuangMiao
    @HokuangMiao 5 років тому +1

    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.

    • @ResoCoder
      @ResoCoder  5 років тому +1

      I don't understand this either, but they're working on data classes already.

  • @sweet-sinner
    @sweet-sinner 5 років тому

    thanks

  • @danvilela
    @danvilela 5 років тому

    Can i compare objects with it? (kinda like what equatable does)

  • @simonhutton2497
    @simonhutton2497 5 років тому +1

    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

    • @ResoCoder
      @ResoCoder  5 років тому +1

      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.

  • @dennisbarzanoff9025
    @dennisbarzanoff9025 3 місяці тому

    grpc is just sooo much simpler

  • @ShunKazamiify
    @ShunKazamiify 4 роки тому

    for android devs, it's just data class feel bad for flutter devs :((

  • @arifikhsanudin9724
    @arifikhsanudin9724 4 роки тому

    Hello

  • @jpiabrantes
    @jpiabrantes 4 роки тому +2

    This is so hacky :|

  • @almokhtar1844
    @almokhtar1844 4 роки тому

    thanx