I would like to display the frame of a smartphone (SVG Image) and display any widgets in it that should not go beyond the frame of the smartphone.
In the image above I have the frame in a Stack and on top a ListView with Cards as child widget. The frame must be below the child widget for gestures to work. The ListView's width is limited with a SizedBox with hardcoded width, but with that it's not responsive. On a slightly smaller screen, the ListView exceeds the frame (as you can see in the image). How can I make sure that the child widget always stays in the frame even if the screen size changes.
I also tried using ClipPath but I couldn't fit it perfectly into the frame. But I think ClipPath is needed because I want to place other child widgets in the frame e.g. Video that should cover all the space in the frame.
