Devices class abstract final

The devices worth offering, which is not all of them.

A picker with a hundred entries is unusable. What a layout meets is a handful of size classes — small, standard, large, tablet, desktop — so this is one of each per platform, named after a device that sits in that class.

The five with a hand-drawn device_frame body (Devices.iphoneSe, Devices.iphone13Mini, Devices.iphone13, Devices.iphone12ProMax, Devices.iPad) carry that package's own measurements, and app/test/previews/frames_test.dart pins the two together — a mismatch would stretch every screenshot inside its frame. Every other iPhone gets a body the GUI draws from these numbers, and the rest render in a generic silhouette of their DeviceKind — which is why a modern model can be added here without artwork.

Properties

hashCode → int
The hash code for this object.
no setterinherited
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

all → const List<Device>
Every offered device, in picker order.
androidBig → const Device
androidMedium → const Device
androidMediumTablet → const Device
androidSmall → const Device
androidSmallTablet → const Device
androidTall → const Device
The shape almost every current Android phone is: tall, with a gesture bar eating the bottom.
iPad → const Device
iPadPro13 → const Device
iphone12ProMax → const Device
iphone13 → const Device
iphone13Mini → const Device
iphone16 → const Device
The Dynamic Island generation — the same screen as an iPhone 15, and the one most users are holding.
iphone16ProMax → const Device
The largest iPhone screen there is — what a layout overflows on last and what a store listing wants first.
iphoneSe → const Device
linuxLaptop → const Device
linuxWindow → const Device
A Linux window, unscaled — which is still the common case there.
macbookPro → const Device
The screens these window sizes replaced.
smallWindow → const Device
wideMonitor → const Device
wideWindow → const Device
window → const Device
windowsLaptop → const Device
windowsWindow → const Device
A Windows window, at the scale Windows actually ships at.