CNDatePickerStyle enum

How a CNDatePicker is drawn.

On iOS these are the UIDatePickerStyle values. macOS has no wheels and no compact pill; there each style is the NSDatePicker style closest to it: compact the text field, which opens a calendar when a date field is clicked, as the pill opens its popover; wheels the text field and stepper, whose arrows step the selected field as a wheel does; inline the clock and calendar.

Inheritance
Available extensions

Values

automatic → const CNDatePickerStyle

Lets the platform choose. For every CNDatePickerMode but CNDatePickerMode.yearAndMonth this is compact, as it is in UIKit.

compact → const CNDatePickerStyle

A pill showing the value, which opens the picker in a popover when tapped. Below iOS 26 the pill opens a CupertinoDatePicker in a popup.

inline → const CNDatePickerStyle

A calendar shown in place, with a time row below it in CNDatePickerMode.dateAndTime. It fills the width it is given, and its height follows that width (354 points at 362 wide on iOS 27). Below iOS 26 this is a CupertinoDatePicker, as Flutter has no Cupertino calendar.

wheels → const CNDatePickerStyle

Spinning wheels, 216 points tall.

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<CNDatePickerStyle>
A constant List of the values in this enum, in order of their declaration.