firmament

Crates.iofirmament
lib.rsfirmament
version0.1.0
sourcesrc
created_at2020-09-12 03:37:58.6244
updated_at2020-09-12 03:37:58.6244
descriptionlayout
homepage
repository
max_upload_size
id287616
size34,093
(adamnemecek)

documentation

README

firmament

A Rust layout algorithm based on Flutter/Druid/Iced.

How does it work?

Resources

https://flutter.dev/docs/development/ui/layout https://flutter.dev/docs/codelabs/layout-basics

impl MainWidget {
    fn build(context: BuildContext) -> Widget {
        Row(
            children: [
                BlueBox(),
                BlueBox(),
                BlueBox(),
            ]
        )
    }
}

impl BlueBox {
    fn build(context: BuildContext) -> Widget {
        Container {
            width: 50.0,
            height: 50.0,
            decoration: BoxDecoration(
                color: ...,
                border: ...
            )
        }
    }
}

Axis size and alignment

Row has a horizontal main axis and Column vertical main axis . mainAxisSize determines how much space Row an Column can occupy on their main axes.

MainAxis.max MainAxis.min

Commit count: 0

cargo fmt