ScalePreset enum
A set of predefined presets to control the size of the FlatListItem. Based on the preset selected, the height of the holder and the size of the items it contains is scaled accordingly. A preset calculates the height of the holder based on the device orientation and divided by corresponding factor. Following are the factors used in each preset and depending on the device orientation:- minimal : 14.0 (P) and 7.0 (L), small : 10.0 (P) and 7.0 (L), normal : 9.0 (P) and 6.0 (L), large 6.0 (P) and 4.0 (L), and finally gigantic : 3.0 (P/L).
Constants
- gigantic → const ScalePreset
-
const ScalePreset(4)
- large → const ScalePreset
-
const ScalePreset(3)
- minimal → const ScalePreset
-
const ScalePreset(0)
- normal → const ScalePreset
-
const ScalePreset(2)
- small → const ScalePreset
-
const ScalePreset(1)
-
values
→ const List<
ScalePreset> -
A constant List of the values in this enum, in order of their declaration.
const List<
ScalePreset>
Properties
Methods
-
toString(
) → String -
Returns a string representation of this object.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited