I've been trying to build a UI where i have google map in the background and i have a persistent bottomsheet inflated
I wanted to get the dynamic height of the bottomsheet, which i'm getting from the bottomsheetscaffoldstate.bottomsheetstate.requireoffset() which throws IllegalArgumentException before first pass. Have wrapped it in try/catch block, but was looking for better ways to do this.
The reason i wanted height was to place UI elements above the bottomsheet