This repository has been 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
-
Hi! I was playing with
StatelessWidget
andStatefulWidget
to choose the best approach for my target.But a question comes to my mind: is the
StatefulWidget
really necessary? There is something that I can do with it that I can not with a simpleStatelessWidget
with 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
StatefulWidget
behaviour with aStatelessWidget
in 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