How to change the color of ElevatedButton when the function condition is met