CNButtonStyle enum
Visual styles for CNButton and related controls.
On iOS 26+ and macOS 26+, glass and prominentGlass render as native Liquid Glass effects. On older OS versions they fall back to a CupertinoButton-based appearance.
Values
- plain → const CNButtonStyle
-
Minimal, text-only style with no background.
- gray → const CNButtonStyle
-
Subtle gray background style.
- tinted → const CNButtonStyle
-
Tinted style — label and background use the accent color.
- bordered → const CNButtonStyle
-
Bordered button with a visible stroke.
- borderedProminent → const CNButtonStyle
-
Prominent bordered style with an accent-colored stroke and fill.
- filled → const CNButtonStyle
-
Solid filled background style using the accent color.
- glass → const CNButtonStyle
-
Liquid Glass effect. Requires iOS 26+ or macOS 26+.
Falls back to a translucent CupertinoButton on older OS versions.
- prominentGlass → const CNButtonStyle
-
More prominent Liquid Glass effect. Requires iOS 26+ or macOS 26+.
Falls back to a filled CupertinoButton on older OS versions.
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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
CNButtonStyle> - A constant List of the values in this enum, in order of their declaration.