Aliases
ColorValue
#
ColorValue = Union[str, Colors, CupertinoColors]
Type alias for color values.
Represents a color and can be:
- a string (representing a color name or hex value),
- a material color from the Colors
enum,
- or a Cupertino color from the CupertinoColors
enum.
More information here.
Type alias for color values.
Represents a color and can be:
- a string (representing a color name or hex value),
- a material color from the Colors
enum,
- or a Cupertino color from the CupertinoColors
enum.
More information here.
ControlEventHandler
#
IconData
#
Represents an icon used in the UI.
An icon can come from:
- the Material icon set via the
Icons
enum, - the Cupertino icon set via the
CupertinoIcons
enum, - or a custom icon set defined by the developer.
Internally, an icon is stored as an integer that encodes icon's index in its originating code set.
Encoding structure:
- Lower 16 bits (bits 0-15): the icon's index.
- Third byte (bits 16-24): the icon set identifier (set ID), which distinguishes between icon sets like Material, Cupertino, etc.
This encoding scheme allows a single integer to uniquely represent any icon across multiple icon sets.
ResponsiveNumber
#
StrOrControl
#
Type alias for string or control values.
Represents a string or a control and can be:
- a string, which will be converted internally into a Text
control,
- or a control.
Type alias for string or control values.
Represents a string or a control and can be:
- a string, which will be converted internally into a Text
control,
- or a control.