Signals in

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

КОМЕНТАРІ • 36

  • @ugurcanyildirim
    @ugurcanyildirim 7 місяців тому +3

    As a follow-up video, it'd be great to see how to utilize Signals in a clean architecture setup.

  • @akshat_tamrakar
    @akshat_tamrakar 7 місяців тому +4

    I love it... Signals are awesome...
    They are declarative, way less boilerplate than bloc and it's not generated like riverpod...

  • @serious.194
    @serious.194 7 місяців тому +1

    Really nice video. Loved the way you explaied everything. I was wondering if you could do a part 2 to this video where you can give tips on how to structure your project when using Signals, some uncovered topics like effect, untracked, batch, etc.. Would love a part 2 to this.

    • @TylerCodes
      @TylerCodes  7 місяців тому +2

      Thanks for the feedback! I’ll see what I can do :)

  • @qs1862
    @qs1862 8 місяців тому +2

    I like your explanation so clear and crisp.

  • @paininmydroid4526
    @paininmydroid4526 6 місяців тому

    Wonderful tutorial Tyler

  • @reid165
    @reid165 8 місяців тому +3

    I assume the null state of the check box would be to support tristate mode

    • @reid165
      @reid165 8 місяців тому +2

      which is useful for a parent checkbox being true when all children are selected, false when no children are selected, or null when some children are selected

    • @TylerCodes
      @TylerCodes  8 місяців тому +1

      That makes sense! Thank you :)

  • @LDEV-l3p
    @LDEV-l3p 4 місяці тому

    It looks simpler and more convenient compared to other state management frameworks, but why are there so few people using it?

    • @TylerCodes
      @TylerCodes  4 місяці тому

      It seems to have a pretty good reputation on pubdev. However, nothing is going to stop bloc from being the goto for most people.

  • @RandalLSchwartz
    @RandalLSchwartz 8 місяців тому +1

    At 22:20, since you're already using records, I presume you're firmly in dart 3 territory, so why not use a switch-expression to remove the noisy repeated "return"?

    • @TylerCodes
      @TylerCodes  8 місяців тому

      Yes. To be fair, my focus for this video was the signals package and I didn’t want to throw too many concepts out there buttt yeah, a pattern match would certainly be cleaner there!

  • @RodyDavis
    @RodyDavis 7 місяців тому

    Thanks for the review 🎉

    • @TylerCodes
      @TylerCodes  7 місяців тому

      Hey! Thanks for watching and for your work on this awesome package!

  • @codemoor
    @codemoor 8 місяців тому

    Wow That is Intresting have you test in bigger project ?

    • @TylerCodes
      @TylerCodes  8 місяців тому +2

      No, I use riverpod on pretty much all my projects. This could be a contender in the future though!

  • @CodeWithImem
    @CodeWithImem 8 місяців тому

    i noticed that signals have similar approch to riverpod with declaring variable as global variables - that's intersting

    • @TylerCodes
      @TylerCodes  8 місяців тому

      There's no reason it needs to be global - but usually with state management you want to access things that are outside a specific widget. Otherwise, you could just use a StatefulWidget and call it a day.
      In a real application, I wouldn't just have the signals at the top of a file - they'd be tucked away somewhere in a more organized manner.

  • @motive9403
    @motive9403 7 місяців тому

    Good explanation. What is the extension name to get thoose left-side lines?

    • @TylerCodes
      @TylerCodes  7 місяців тому

      Thanks! IIRC It's part of the dart extension - you just need to enable "dart.previewFlutterUiGuides": true in your settings.json

    • @TylerCodes
      @TylerCodes  7 місяців тому

      stackoverflow.com/questions/58032083/how-can-i-get-tree-like-indentation-for-flutter-code-in-vs-code

  • @鄭小白-n4p
    @鄭小白-n4p 6 місяців тому

    is this good then riverpods?

    • @TylerCodes
      @TylerCodes  6 місяців тому +1

      I prefer riverpod mostly because I’ve used it a lot more. But that could change if I get more comfortable with it.

  • @okokokokokok5173
    @okokokokokok5173 7 місяців тому

    I think this state management is inspired by GextX,

    • @TylerCodes
      @TylerCodes  7 місяців тому +2

      It's inspired by preact signals. (javascript)

    • @okokokokokok5173
      @okokokokokok5173 7 місяців тому

      Thanks bro, I have used GetX in a couple of project before, it has similarities when comes to state listening in UI@@TylerCodes

  • @MallakChannel
    @MallakChannel 8 місяців тому

    would SignalList update when one of its content has been updated? or it just update on insert and remove? because in your example you used typedef which doesn't have setters for the fields so you had to make a new instance and replace the old one with it.

    • @TylerCodes
      @TylerCodes  8 місяців тому

      When the list is modified, the signal will emit. This is my understanding of it from the examples and my fiddling. I didn’t change an item in the list, instead I replaced something in the list with a new item (similar to the original one at that position)

  • @solutionship6241
    @solutionship6241 8 місяців тому

    What app do u use to screen record?

    • @TylerCodes
      @TylerCodes  7 місяців тому

      Generally I use Screenflick - sometimes I use OBS.

  • @MallakChannel
    @MallakChannel 8 місяців тому

    I learnt something new, "length" in the American accent the g makes a sound!

    • @TylerCodes
      @TylerCodes  8 місяців тому +1

      Haha. I have a Canadian accent technically, but there's a lot of overlap with the country below me.