Block layouts
Quick overview of SuperDeck's block-based layout system
Block layouts
SuperDeck uses a block-based layout system for flexible content arrangement. Blocks are containers that hold different content types.
Core concept
Blocks automatically arrange themselves:
- Vertical stacking - Blocks stack vertically by default
- Horizontal sections - Use
@sectionfor side-by-side layouts - Flexible sizing - Control space with
flex
Common blocks
@column # Markdown content (most common)
@section # Container for horizontal layouts
@image # Images with fit options
@dartpad # Interactive code examples
@qrcode # QR codes
@widget # Custom Flutter widgets
Flexible sizing
@section
@column {
flex: 2
}
Takes 2/3 of the space
@column {
flex: 1
}
Takes 1/3 of the space
Mixed content
@section
@column
## Text Content
- Point one
- Point two
@image {
src: assets/screenshot.png
fit: contain
}
Block properties
All blocks support these properties:
flex- Relative size (default: 1)align- Content alignment (center, top_left, etc.)scrollable- Enable scrolling (default: false)
@column {
flex: 2
align: center
scrollable: true
}
Content + visual
@section
@column {
flex: 2
}
## Feature Description
Detailed explanation...
@column
