Replies: 4 comments 2 replies
-
I actually got around the issue for now by putting a timer into the initState of the myUserIcon widget to check the status of the
|
Beta Was this translation helpful? Give feedback.
-
Hello! I do not understand your code. But what is |
Beta Was this translation helpful? Give feedback.
-
Hey! Its a
I thought the problem might be that I am not doing a As some background I am setting this data from a void Function that is not in my widget tree and inside that void function I am setting the user data: But when I made that into a What is interesting about all this is going back to my first post, the |
Beta Was this translation helpful? Give feedback.
-
It's quite likely that the lack of a notifyListeners is the issue, yes. As for why you were not able to call |
Beta Was this translation helpful? Give feedback.
-
I have the following bit of code (cut short for space reasons, full code can be provided if needed)
When my
globalUserDataProvider
is updated, myFloatingActionButton
updates in realtime and I see the button appear or disappear depending on ifuserid
is > 0. Thats working great, looks and runs amazingly!However
I also have a user Icon sitting in the appbar in the actions area
MyUserIcon()
. This part does not update in realtime when theglobalUserDataProvider
is updatedHere is the
MyUserIcon()
widget condensed. In order to keep things small in this report, Ive replaced the actual images with Text widgets here,User is NOT logged in
andUser is logged in
.What should be happening is those text widgets should update in real-time when
globalUserDataProvider
is updated, but they aren't changingIs this something to do with my code or to do with the structure of riverpod do you think?
Beta Was this translation helpful? Give feedback.
All reactions