Closed aldwnesx closed 3 years ago
Hi @aldwnesx,
It is a bit difficult to see from your short sample what might be wrong, but from what is shown I suspect your implementation/usage might be causing the issue.
I took the basic example included with the package and added print statements to the onColorChanged
callback there for both the Card and Dialog example.
In a Card here:
In a Dialog here:
You can find the complete code for this modified example with the print statements baked in here: https://gist.github.com/rydmike/65d9219a5d8be61bc9b31077c531ebe3
When I use this example, the onColorChanged
callback appears to be working as it should in both cases
If you compare your code with the example code, can you find any major differences between it and your implementation from a usage principle point of view? If you do, then that might help you solve the issue.
If it does not help, then if you provide a link to short a Gist sample or complete GitHub repo with your code, I might be able to assist further.
Mike
Hello, thanks so much for your reply.
The problem seems to be gone after I restarted my PC, so weird!
Thank you for the great work!
No problem, happy to help and that you got it to work :)
I am trying to store the color selected into sharedpreference, but it looks like the callback function isn't working: