GridTrack

GridTrack defines a row or column track for Grid.
Track
Meaning
GridTrack::Points(x)
Fixed logical points.
GridTrack::Percent(x)
Percentage of the grid axis.
GridTrack::Fr(x)
Fraction of remaining space.
GridTrack::Auto
Content-driven automatic track.
GridTrack::MinContent
Minimum intrinsic content size.
GridTrack::MaxContent
Maximum intrinsic content size.
GridTrack::minmax(min, max)
Track constrained between two track definitions.
GridTrack::repeat(count, tracks)
Repeat a set of tracks a fixed number of times.
GridTrack::auto_fit(track)
Repeat to fit available space and collapse empty tracks.
GridTrack::auto_fill(track)
Repeat to fill available space and retain empty tracks.
const CARD_MIN_WIDTH: f32 = 220.0;

Grid {
    columns: vec![GridTrack::auto_fit(GridTrack::minmax(
        GridTrack::Points(CARD_MIN_WIDTH),
        GridTrack::Fr(1.0),
    ))],
    children: cards,
    ..Default::default()
}
.into()
Fission
A cross-platform, GPU-accelerated user interface framework for Rust. MIT licensed.
Copyright (c) 2026 Fission
Ready to use today. Widget APIs are expected to remain stable; some runtime and shell APIs may change before 1.0.0.
Fission 0.9.2