Enum FabSize Copy item path Source 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.
56 across, 16 at the corners, a 24 icon. The one meant by “the button”.
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.
96 and 28, with a 36 icon: a single action on a large screen.
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.
The button’s side, or its height when it is extended.
The corner the reference gives it (floating_action_button.dart:816).
How big the glyph inside is (floating_action_button.dart:824).
Performs copy-assignment from
source.
Read more Formats the value using the given formatter.
Read more Returns the “default value” for a type.
Read more Immutably borrows from an owned value.
Read more Mutably borrows from an owned value.
Read more 🔬 This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from
self to
dest.
Read more Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
From <T> for U chooses to do.
The message that stands for work’s result.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more Uses borrowed data to replace owned data, usually by cloning.
Read more The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.