How to fix the aspect ratio of a Canvas?

I have a canvas that represents a frame of a video so I need to render it with a fixed aspect ratio. I want to overall size of the canvas to be dynamic. Is there a way to do this without creating a custom widget?

I found the solution. The iced::widget::Responsive makes this easy.

The docs don’t say this but the widget is guarded behind the lazy feature.