This repository was archived by the owner on Aug 6, 2023. It is now read-only.
Replies: 2 comments
-
|
I was just about filing the same issue, glad to discover this! |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I have the same question that I can to save state through the fields in the structure of stateless in order to achieve the same purpose |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I was playing with
StatelessWidgetandStatefulWidgetto choose the best approach for my target.But a question comes to my mind: is the
StatefulWidgetreally necessary? There is something that I can do with it that I can not with a simpleStatelessWidgetwith a mutable reference to the state?I understand the concept behind this, but I think that inside of a paradigm where a widget is consumed after rendering loses its benefits.
For example, I can express the
StatefulWidgetbehaviour with aStatelessWidgetin the following way:There is some real difference between these two ways?
Is there something that I am not seeing?
Thank you so much!!
Beta Was this translation helpful? Give feedback.
All reactions