presets library
Built-in device presets for package:device_preview.
A separate library so that unreferenced presets tree-shake away from apps that never import it.
Classes
- DevicePreset
- Description of a device: its metrics, and optionally the frame it is drawn in.
- DevicePresets
-
The built-in device preset catalog, generated from the
device specs (
device_specs/at the root of the repository) — the same catalog the DevTools panel offers, frame artwork and system UI included. - SimulatedDisplayFeature
-
A
dart:ui-free, JSON-serializable mirror of ui.DisplayFeature, in logical pixels.
Enums
- DeviceKind
- The broad category of a simulated device.