Provide the required code to reproduce the issue you are facing. This helps in understanding the problem better and providing a solution.
Additionally, if you are using the flutter_health_connect package, be aware that it is no longer maintained. I recommend switching to the health: ^12.1.0 package instead. It is actively maintained, has better issues resolved, and the documentation is easy to follow. This will ensure compatibility with the latest Flutter updates and provide a smoother development experience as well.