Documentation
  • Coverage
  • 93.02%
    40 out of 43 items documented0 out of 0 items with examples
  • Size
  • Source code size: 33.72 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 6.26 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • adamnemecek

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