pub fn new(child: impl Widget<T> + 'static, ratio: f64) -> Self {
        Self {
            child: Box::new(child),
            ratio: clamp_ratio(ratio),
        }
    }
/// Create container with a child and aspect ratio.
///
/// The aspect ratio is defined as width / height.
///
/// If aspect ratio <= 0.0, the ratio will be set to 1.0
Create container with a child and aspect ratio.
The aspect ratio is defined as width / height.

If aspect ratio <= 0.0, the ratio will be set to 1.0
Create container with a child and aspect ratio . The aspect ratio is defined as width / height . If aspect ratio < = 0 . 0 the ratio will be set to 1 . 0
pub fn new(child: impl Widget<T> + 'static, ratio: f64) -> Self {
        Self {
            child: Box::new(child),
            ratio: clamp_ratio(ratio),
        }
    }
pub fn new ( child : impl Widget < T > + ' static , ratio : f64 ) -> Self { Self { child : Box :: new ( child ) , ratio : clamp_ratio ( ratio ) , } }
Create container with a child and aspect ratio.
Create container with a child and aspect ratio .
child
impl Widget<T> + 'static
ratio
f64
child
impl Widget<T> + 'static
ratio
f64