pub enum FabSize {
Regular,
Small,
Large,
Extended,
}Expand description
The four sizes the reference draws (floating_action_button.dart:783), each with its
own box, its own corner and its own icon.
They are one enum rather than four constructors’ worth of fields because every one of those three numbers follows from which of the four it is, and a size that took them separately would let a caller build a large button with a small button’s corner.
Variants§
Regular
56 across, 16 at the corners, a 24 icon. The one meant by “the button”.
Small
40 and 12, with the same 24 icon — for a screen that already has a bigger one, or a surface too small to give up 56.
Large
96 and 28, with a 36 icon: a single action on a large screen.
Extended
56 tall and as wide as its words, 16 at the corners. An icon and a label, for an action whose glyph would not say what it does.
Implementations§
Trait Implementations§
impl Copy for FabSize
impl Eq for FabSize
impl StructuralPartialEq for FabSize
Auto Trait Implementations§
impl Freeze for FabSize
impl RefUnwindSafe for FabSize
impl Send for FabSize
impl Sync for FabSize
impl Unpin for FabSize
impl UnsafeUnpin for FabSize
impl UnwindSafe for FabSize
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<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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.