DesignLanguage enum
The design language (visual style) of the application.
It describes how the UI looks, independent of the platform it runs on. Use OperatingSystem.defaultDesignLanguage to get the native one.
The presenter, AdaptiveWidget and AdaptiveDesignLanguage.select support material and cupertino. fluent, adwaita and kde are not implemented yet and throw an UnimplementedError.
- Inheritance
- Available extensions
Values
- cupertino → const DesignLanguage
-
Apple Human Interface Guidelines (iOS, macOS).
- material → const DesignLanguage
-
Material Design by Google (Android).
- fluent → const DesignLanguage
-
Fluent Design System by Microsoft (Windows).
- adwaita → const DesignLanguage
-
Adwaita / libadwaita (GNOME on Linux).
- kde → const DesignLanguage
-
KDE Plasma on Linux. Named after the desktop instead of its default theme (Breeze), because the theme is user configurable in KDE.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notImplemented(
String feature) → UnimplementedError -
Available on DesignLanguage, provided by the AdaptiveDesignLanguage extension
The error for a feature that is not implemented for this design language.featurenames it in the message, e.g.'showMessage'. -
select<
T> ({required T material, required T cupertino, T? fluent, T? adwaita, T? kde}) → T -
Available on DesignLanguage, provided by the AdaptiveDesignLanguage extension
Returns the value for this design language. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
DesignLanguage> - A constant List of the values in this enum, in order of their declaration.