Closed Uriopass closed 9 months ago
Not sure if a bug or not, but could be useful to anyone having the same issue. Rendering a colored box at the root takes the whole space even if constrained.
See this example:
yakui::colored_box_container(colors::BACKGROUND_2, || { yakui::pad(Pad::all(8.0), || { yakui::text(10.0, "hi"); }); });
And as a workaround, the layout works as expected with yakui::column
yakui::column(|| { yakui::colored_box_container(colors::BACKGROUND_2, || { yakui::pad(Pad::all(8.0), || { yakui::text(10.0, "hi"); }); }); });
Actually I think that's the default flutter behavior: the root is forced to screen size. See the doc example #2.
Not sure if a bug or not, but could be useful to anyone having the same issue. Rendering a colored box at the root takes the whole space even if constrained.
See this example:
And as a workaround, the layout works as expected with yakui::column