VisualDensity
Inherits: Enum
Defines the visual density of user interface components.
Properties
-
ADAPTIVE_PLATFORM_DENSITY–Visual density that is adaptive based on the given platform.
-
COMFORTABLE–The profile for a "comfortable" interpretation of visual density.
-
COMPACT–The profile for a "compact" interpretation of visual density.
-
STANDARD–The default/standard profile for visual density.
Properties#
ADAPTIVE_PLATFORM_DENSITY = 'adaptivePlatformDensity'
class-attribute
instance-attribute
#
Visual density that is adaptive based on the given platform.
For desktop platforms, this returns COMPACT, and for other platforms,
it returns a default-constructed visual density.
COMFORTABLE = 'comfortable'
class-attribute
instance-attribute
#
The profile for a "comfortable" interpretation of visual density.
Individual
components will interpret the density value independently, making themselves more
visually dense than STANDARD and less dense than COMPACT
to different degrees based on the Material Design specification of the
comfortable setting for their particular use case.
It corresponds to a density value of -1 in both axes.
COMPACT = 'compact'
class-attribute
instance-attribute
#
The profile for a "compact" interpretation of visual density.
Individual components will interpret the density value independently, making
themselves more visually dense than STANDARD and COMFORTABLE to
different degrees based on the Material Design specification of the
COMFORTABLE setting for their particular use case.
It corresponds to a density value of -2 in both axes.
STANDARD = 'standard'
class-attribute
instance-attribute
#
The default/standard profile for visual density.
This default value represents a visual density that is less dense than
either COMFORTABLE or COMPACT, and corresponds to
density values of zero in both axes.