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. For desktop platforms,
-
COMFORTABLE–The profile for a
comfortableinterpretation ofVisualDensity. Individual -
COMPACT–The profile for a "compact" interpretation of VisualDensity.
-
STANDARD–The default profile for VisualDensity. This default value represents a visual
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
VisualDensity.
COMFORTABLE = 'comfortable'
class-attribute
instance-attribute
#
The profile for a comfortable interpretation of VisualDensity. 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 VisualDensity.
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 profile for VisualDensity. 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.