So I basically solved it by not having a top bar in the Scaffold
component. If anyone stumbles upon this issue, just try to remove your topBar
from the Scaffold
.
P.S. In the original code, you don't see a topBar
because I removed the code that I thought was unnecessary, in this case the top bar and the bottom bar. Who knew that the top bar was the culprit? This is most likely a Compose bug. Anyway, I hope anyone that finds this exact issue will be able to solve it with this workaround.