Why I use a function to change a value but it returns a empty value? #2050
Replies: 3 comments
-
|
Honestly who knows. Hard to say at a glance I'd need a complete minimal reproducible example to help. The code looks alright, so I need something I can execute (which is not your entire project), |
Beta Was this translation helpful? Give feedback.
-
|
@rrousselGit Ok, I'll share some more code with you. Actually, it's about screen editing. It has a TextField that contains the user's about text. When the user changes the TextField, it updates the user's about and typed about text. The AppBar has a button that is disabled when the about text is the same or empty, otherwise enabled. |
Beta Was this translation helpful? Give feedback.
-
Let me know if you need more code. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am using
flutter_riverpodpackage:I have a value in my state and I have a function that changes its value in my controller.
I use a function in my controller in my widget. However, when I print the value, it returns empty. I've checked my code several times and still can't find where the problem is.
My code:
Feel free to leave a comment if you need more information.
Why I use a function to change a value but it returns a empty value? I would appreciate any help. Thank you in advance!
Beta Was this translation helpful? Give feedback.
All reactions