I’d like to have a scrollable region at the top of the window and content at the bottom of the window. If the scrollable content exceeds the height of the window, the top part should scroll but the bottom content remains.
There seems to be no way to layout in bottom-to-top or right-to-left, or dock widgets, etc.
So there is no way to do this?
Below, if I increase 16
to 100, the bottom text widget disappears because the scrollable region takes over the whole window. How to prevent?
use iced::widget::*;
use iced::*;
#[derive(Default)]
struct App {}
#[derive(Debug, Clone)]
enum Message {}
fn update(_app: &mut App, _m: Message) {}
fn view(_app: &App) -> Element<Message> {
Column::new()
.width(Length::Fill)
.height(Length::Fill)
.push(scrollable(Column::with_children((0..16).map(|i| text(format!("Line {}", i)).into()))))
.push(container(text("Sphinx of black quartz, judge my vow.")))
.into()
}
fn main() -> iced::Result {
run("App", update, view)
}