Flutter in Practice - E21: Inherited Widget Explained

Поделиться
HTML-код
  • Опубликовано: 7 сен 2024

Комментарии • 15

  • @lucaliebenberg7565
    @lucaliebenberg7565 Год назад +1

    Great video, thank you! Loving this Flutter series

  • @big55am
    @big55am 4 года назад +2

    Amazing videos, But who are the 3 people that disliked that tuto !!!!!

  • @remirousselet6867
    @remirousselet6867 5 лет назад +4

    Saying that the combination Stateful+Inherited is mutable and that Inherited+Stream isn't is weird.
    A stream is a mutable class. We can read its content at two different points in time, and the content may have changed.
    On the other hand, the stateful+inherited combination isn't. The object instance returned by `MyInherited.of(context)` is completely immutable, and the only way to have a different value is to call the `.of` method again.
    Similarly, the whole point of InheritedWidget is to ensure that widgets are always in sync with the data.
    The Stateful+Inherited is not the "dark side". InheritedWidget is explicitly built with this in mind.
    Also, scoped_model doesn't follow the Stateful+Inherited pattern as you've explained. It uses a Listenable, which essentially is the same as a Stream.

    • @remirousselet6867
      @remirousselet6867 5 лет назад

      Hello, thanks for your answer! I hope I didn't sound harsh :)
      Sure, we can meet. Do you have a mail?

  • @DominikRoszkowski
    @DominikRoszkowski 5 лет назад +2

    I really enjoyed the episode and can't wait for the upcoming 'final architecture' 👌

  • @igorkuna290
    @igorkuna290 5 лет назад

    very well explained, thanks for sharing!

  • @remirousselet6867
    @remirousselet6867 5 лет назад +1

    I think your "Light vs Dark" is not about immutable vs mutable.
    Both approaches have a mutation at some point. Instead, it's about reactive vs declarative programming.

  • @mrpakravian
    @mrpakravian 5 лет назад +1

    great explanation

  • @krissh5444
    @krissh5444 5 лет назад +1

    What is better approach for state management ? Which one is your favorite ? @zaiste

  • @user-tv4kh4pc7s
    @user-tv4kh4pc7s 4 года назад

    nice

  • @belqisshida5345
    @belqisshida5345 4 года назад

    Which state management you prefer for a complete chat application with flutter and websocket (InheritedWidget or bloc)?

  • @Nobody-ky7sl
    @Nobody-ky7sl 5 лет назад

    Do you recommended Felix’s block plugin?

  • @androidkaiinsaf7110
    @androidkaiinsaf7110 3 года назад

    Sir till 20 Episode I have completed, But after giving windows i lost the project .Please anyone help me .Please zaista help me.

  • @wearecode9199
    @wearecode9199 4 года назад

    Well that's how Provider works -> the package from pub dev, it simplifies all that ? no ?