1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//! Spacer widget implementation
use cratecomposable;
use crateLeafMeasurePolicy;
use crate;
use crateLayout;
use NodeId;
/// A component that represents an empty space.
///
/// # When to use
/// Use `Spacer` to create empty space between other composables, or to push
/// composables apart when using weighted arrangements in `Row` or `Column`.
///
/// # Arguments
///
/// * `size` - The explicit size of the spacer.
///
/// # Example
///
/// ```rust,ignore
/// Row(..., || {
/// Text("Left", Modifier::empty());
/// Spacer(Size::new(16.0, 0.0)); // 16dp gap
/// Text("Right", Modifier::empty());
/// });
/// ```