pub enum MainAxisAlignment {
Start,
End,
Center,
SpaceBetween,
SpaceAround,
SpaceEvenly,
}Expand description
How the children should be placed along the main axis in a flex layout.
See also:
RenderFlex, the flex render object.
Variants§
Start
Place the children as close to the start of the main axis as possible.
If this value is used in a horizontal direction, a TextDirection must be available to
determine if the start is the left or the right.
If this value is used in a vertical direction, a VerticalDirection must be available
to determine if the start is the top or the bottom.
End
Place the children as close to the end of the main axis as possible.
If this value is used in a horizontal direction, a TextDirection must be available to
determine if the end is the left or the right.
If this value is used in a vertical direction, a VerticalDirection must be available
to determine if the end is the top or the bottom.
Center
Place the children as close to the middle of the main axis as possible.
SpaceBetween
Place the free space evenly between the children.
SpaceAround
Place the free space evenly between the children as well as half of that space before and after the first and last child.
SpaceEvenly
Place the free space evenly between the children as well as before and after the first and last child.
Trait Implementations§
Source§impl Clone for MainAxisAlignment
impl Clone for MainAxisAlignment
impl Copy for MainAxisAlignment
Source§impl Debug for MainAxisAlignment
impl Debug for MainAxisAlignment
impl Eq for MainAxisAlignment
Source§impl PartialEq for MainAxisAlignment
impl PartialEq for MainAxisAlignment
impl StructuralPartialEq for MainAxisAlignment
Auto Trait Implementations§
impl Freeze for MainAxisAlignment
impl RefUnwindSafe for MainAxisAlignment
impl Send for MainAxisAlignment
impl Sync for MainAxisAlignment
impl Unpin for MainAxisAlignment
impl UnsafeUnpin for MainAxisAlignment
impl UnwindSafe for MainAxisAlignment
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.